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
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.
mysql -u -p -D < file.sql
Hope this would help.