MySQL Error 1215: Cannot add foreign key constraint

前端 未结 30 3217
予麋鹿
予麋鹿 2020-11-22 01:37

I am trying to forward engineer my new schema onto my db server, but I can\'t figure out why I am getting this error. I\'ve tried to search for the answer here, but everyth

30条回答
  •  执笔经年
    2020-11-22 02:01

    I had the same problem.
    I solved it doing this:

    I created the following line in the
    primary key: (id int(11) unsigned NOT NULL AUTO_INCREMENT)

    I found out this solution after trying to import a table in my schema builder. If it works for you, let me know!

    Good luck!

    Felipe Tércio

提交回复
热议问题