1Go to Edit -> Preferences -> SQL Editor
2set to a higher value this parameter:
3DBMS connection read time out (in seconds). For instance: 86400.
4
5Close and reopen MySQL Workbench.
6Kill your previously query that probably is running and run the query again.