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?
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?
I had the same problem - but for me the solution was a DB user with too strict permissions. I had to allow the
Execute
ability on themysql
table. After allowing that I had no dropping connections anymoreGo to Workbench Edit → Preferences → SQL Editor → DBMS connections read time out : Up to 3000. The error no longer occurred.
Just perform a MySQL upgrade that will re-build innoDB engine along with rebuilding of many tables required for proper functioning of MySQL such as
performance_schema
,information_schema
, etc.Issue the below command from your shell:
Check if the indexes are in place first.
Warning: The following will not work when you are applying it in remote connection:
I got the same issue when loading a .csv file. Converted the file to .sql.
Using below command I manage to work around this issue.
Hope this would help.