`
lovnet
  • 浏览: 6691792 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

MySQL出现1005 - Can't create table 'zxct.#sql-1acc_a' (errno: 150)解决

 
阅读更多

环境:NavicatforMysql8.2 + MySQL Sever 5.1

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


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


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.


参考资料:

http://stackoverflow.com/questions/4061293/mysql-cant-create-table-errno-150



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics