首页 >数据库 >mysql教程 >MySQL出现1005

MySQL出现1005

WBOY
WBOY原创
2016-06-07 17:15:441523浏览

环境:NavicatforMysql8.2 MySQL Sever 5.1,问题:创建外键出现105错误,如下图:

环境:NavicatforMysql8.2 MySQL Sever 5.1

问题:创建外键出现105错误,如下图:

MySQL出现1005

解决:删除引用表,,重新创建。

StackOverFlow上面对105错误的解释:

If you re-create a table that was dropped, it must have a definitionthat conforms to the foreign key constraints referencing it. It must have theright column names and types, and it must have indexes on the referenced keys,as stated earlier. If these are not satisfied, MySQL returns error number 1005and refers to error 150 in the error message.

MySQL出现1005

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:Java操作MongoDB下一篇:Spring管理MongoDB