手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

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

[日期:2012-07-05] 来源:Linux社区  作者:wentasy [字体:大 中 小]

环境: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.

linux
相关资讯       MySQL错误日志 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款