Computer >> Computer tutorials >  >> Programming >> MySQL

How to keep the connection alive in MySQL Workbench?


To keep connection alive in MySQL Workbench, you need to reach at the following location −

Edit -> Preferences -> SQL Editor

Here is the snapshot of all the options.

How to keep the connection alive in MySQL Workbench?

After clicking the “Edit” menu, we will select “Workbench Preferences” as shown below −

How to keep the connection alive in MySQL Workbench?

Now, select SQL Editor and set an interval. You can also set the below options to set the connection alive in MySQL Workbench.

  • DBMS connection Keep-alive interval
  • DBMS connection Read-timeout interval
  • DBMS connection Timeout interval

Here is the screenshot

How to keep the connection alive in MySQL Workbench?