I\'m having some problems creating a foreign key to an existing table in a mysql database.
I have the table exp:
exp
+-------------+--------
Referencing the same column more than once in the same constraint also produces this Cannot find an index in the referenced table error, but can be difficult to spot on large tables. Split up the constraints and it will work as expected.
Cannot find an index in the referenced table