My Oracle Support Banner

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.

Symptoms

 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'

Changes

 Creating tables in 8.0.13

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.