MySQL Workbench: Reconnecting to database when "MySQL server has gone away"?

BugHunterUK picture BugHunterUK · Feb 8, 2016 · Viewed 17.8k times · Source

I have a lot of tabs and queries open in MySQL workbench. I left it open before I went to sleep, but this morning I am getting an error MySQL server has gone away when trying to run queries.

The database is up, and I am able to connect to it if I open a new connection on MySQL workbench, but the current connection is dead. How do I reconnect?

I don't want to open a new connection as I would have to copy my queries and tabs over.

Answer

BugHunterUK picture BugHunterUK · Feb 8, 2016

Done it.

Query Menu -> Reconnect to Server