ERROR 1822 (HY000) Failed to add the foreign key constraint. Missing index for constraint "xxx" in the referenced table 'tabname'
(Doc ID 2494113.1)
Last updated on MAY 14, 2019
Applies to:MySQL Server - Version 8.0 and later
Information in this document applies to any platform.
ERROR 1822 (HY000) at line 4757: Failed to add the foreign key constraint. Missing index for constraint 'constraint_name' in the referenced table 'table_name'
Creating tables in 8.0.13
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document