Error Code: 2013. Lost connection to MySQL server

2019-01-01 06:35发布

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 also that it appears whenever I run long query.

Is there away to increase the timeout value?

26条回答
素衣白纱
2楼-- · 2019-01-01 07:29

If you are using SQL Work Bench, you can try using Indexing, by adding an index to your tables, to add an index, click on the wrench(spanner) symbol on the table, it should open up the setup for the table, below, click on the index view, type an index name and set the type to index, In the index columns, select the primary column in your table.

Do the same step for other primary keys on other tables.

查看更多
无色无味的生活
3楼-- · 2019-01-01 07:30

Change "read time out" time in Edit->Preferences->SQL editor->MySQL session

查看更多
登录 后发表回答