From cff6ddb24d9e23fe1a758f385fb52271a7138689 Mon Sep 17 00:00:00 2001 From: Angus Holder Date: Mon, 8 Jun 2020 12:58:20 +0100 Subject: [PATCH] Default to using MySQL's longer connection timeout var --- .../org/jkiss/dbeaver/ext/mysql/MySQLDataSourceProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/MySQLDataSourceProvider.java b/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/MySQLDataSourceProvider.java index a6e4d601b1..f889494223 100644 --- a/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/MySQLDataSourceProvider.java +++ b/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/MySQLDataSourceProvider.java @@ -65,6 +65,11 @@ public class MySQLDataSourceProvider extends JDBCDataSourceProvider implements D // Set utf-8 as default charset connectionsProps.put("characterEncoding", GeneralUtils.UTF8_ENCODING); connectionsProps.put("tinyInt1isBit", "false"); + // Tell MySQL to use the (typically longer) interactive_timeout variable as the connection timeout + // instead of wait_timeout. + // This longer timeout is for connections directly in use by a human, who'd prefer MySQL not + // kill their connection while they were on a coffee break. + connectionsProps.put("interactiveClient", "true"); // Auth plugins // connectionsProps.put("authenticationPlugins", // "com.mysql.jdbc.authentication.MysqlClearPasswordPlugin," + -- GitLab