MySQL Error 1215: Cannot add foreign key constraint

前端 未结 30 2717
予麋鹿
予麋鹿 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:24

    Check the collation of table, using SHOW TABLE STATUS you can check information about the tables, including the collation.

    Both tables have to has the same collation.

    It's happened to me.

提交回复
热议问题