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
check about
OOM on /var/log/messages , modify innodb_buffer_pool_size value ; when load data , use 50% of os mem ;
Hope this helps