Quantcast
Channel: Anil Konsal
Viewing all articles
Browse latest Browse all 10

Cannot add foreign keys in table – Mysql

$
0
0

While creating the mysql database, I received an error that that fallback script failed and obviously the foreign key was not added. So here’s the solution:

Mysql expects every foreign key in database to be unique so no two foreign keys should have the same name.

I renamed the newly created foreign key and everything worked like a charm.


Viewing all articles
Browse latest Browse all 10

Trending Articles