Comments - Migrating from MySql: MariaDB server closing client connections unexpectedly

10 years, 7 months ago Vivek Kubaji

We are using Hibernate so haven't come across any configuration to set wait_timeout for the connection. I'll check again. And for the moment it is ok to restart the DB as this is just the development environment.

 
10 years, 7 months ago Vladislav Vaintroub

Hibernate supports connection url. Connection url can have

"sessionVariables=wait_timeout=1000000" in the URL query string

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.