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
You should set the 'interactive_timeout' and 'wait_timeout' properties in the mysql config file to the values you need.