Squirrel sql client session timeout

前端 未结 5 1715
醉梦人生
醉梦人生 2021-01-01 17:25

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 b

5条回答
  •  孤独总比滥情好
    2021-01-01 18:09

    I faced the same problem with my local development machine. Since using the driver property "autoReconnect" is discouraged by SQuirreL, I looked for another alternative which fixes the root cause.

    I have access to the /etc/mysql/my.cnf directory on my Linux VM, so I could tweak the variable wait_timeout. Previously, it was set to 600 (600 / 60 seconds per minute = 10 minutes). I then set it to 28800 which is the MariaDB default.

    After restarting the MySQL server using service mysql restart, everything worked like a charm!

提交回复
热议问题