MySQL “Error 1005” when adding tables

前端 未结 2 1369
予麋鹿
予麋鹿 2020-12-19 22:10

I\'ve recently been working with a MySQL database, and using MySQL workbench to design the Database.

When I use the export to SQL function, so I can actually get the

相关标签:
2条回答
  • 2020-12-19 22:46

    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.

    0 讨论(0)
  • 2020-12-19 22:54

    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

    0 讨论(0)
提交回复
热议问题