If you use Connector/J, you can use sessionVariables in the client's JDBC URL like so: jdbc:mysql://hostname:3306/schema?sessionVariables=wait_timeout=600 Other connectors for other languages will probably allow the same.