MySQL “Error 1005” when adding tables

早过忘川 提交于 2019-11-29 11:55:55

When you get this (and other errors out of the InnoDB engine) issue:

SHOW ENGINE INNODB STATUS;

It will give a more detailed reason why the operation couldn't be completed. Make sure to run that from something that'll allow you to scroll or copy the data, as the response is quite long.

I ran into this situation recently when I attempted (in InnoDB tables) to make a foreign key reference to a column that had a different data type.

MySQL 5.1 Documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!