Error Code: 2013. Lost connection to MySQL server during query

后端 未结 29 2188
深忆病人
深忆病人 2020-11-22 16:22

I got the Error Code: 2013. Lost connection to MySQL server during query error when I tried to add an index to a table using MySQL Workbench. I noticed als

29条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 16:32

    I faced this same issue. I believe it happens when you have foreign keys to larger tables (which takes time).

    I tried to run the create table statement again without the foreign key declarations and found it worked.

    Then after creating the table, I added the foreign key constrains using ALTER TABLE query.

    Hope this will help someone.

提交回复
热议问题