Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Squirrel sql client session timeout

It is not related to whatever version it is, just working to find out how to change (of course increase) session timeout value of Squirrel Sql Client. Because I really get bored of getting kind of exception "Last packet sent to the server was .. ago"

Any help would be appreciated.

like image 798
javatar Avatar asked Mar 07 '11 12:03

javatar


2 Answers

You can keep the connection alive by doing the following:

On Aliases->Modify the Selected Alias (pencil icon)-> Properties-> Connection (tab)

Check Enable Keep-Alive

and enter a simple query, in PostgreSQL I use SELECT 1;, in Oracle should be something like SELECT 1 FROM dual

like image 59
user454322 Avatar answered Sep 22 '22 06:09

user454322


Solution for MySQL:

  • Right-click a connection alias and select "Modify alias"
  • Click "Properties" and select the "Driver properties" tab
  • Set the property "autoReconnect" to "TRUE"
like image 38
javatar Avatar answered Sep 22 '22 06:09

javatar