52

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.

2
  • 8
    It is annoying that they don't reconnect automatically, isn't it.
    – adinas
    Apr 12, 2016 at 11:48
  • 1
    Yes haven't the makers of this or pgAdmin ever used SQL Server Management Studio? Feb 13, 2018 at 5:46

1 Answer 1

111

Done it.

Query Menu -> Reconnect to Server
5
  • 8
    is there any automated setting that reconnects it every 60 seconds or so?
    – aimiliano
    Jun 3, 2016 at 13:01
  • 3
    @aimiliano see this answer: stackoverflow.com/questions/22718417/… Jun 4, 2016 at 13:52
  • Thank you, I had this problem too and bothered me until I found your answer :)
    – Tempo
    Apr 11, 2017 at 6:44
  • 2
    Crazy that this isn't on the Server menu! Feb 13, 2018 at 5:46
  • 2
    A "Reconnect to Server" shortcut key would be useful, even if the automated reconnect couldn't be implemented.
    – MarkoPee
    Mar 31, 2020 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.