MySQL Error 1215: Cannot add foreign key constraint

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

    Another source of this error is that you have 2 or more same table names which have the same foreign key names. This sometimes happens to people who use modelling and design software, like Mysql Workbench, and later generate the script from the design.

提交回复
热议问题