diff --git a/redash/query_runner/mysql.py b/redash/query_runner/mysql.py index 903f4787..c1ae2629 100644 --- a/redash/query_runner/mysql.py +++ b/redash/query_runner/mysql.py @@ -137,7 +137,8 @@ class Mysql(BaseSQLQueryRunner): db=self.configuration['db'], port=self.configuration.get('port', 3306), charset='utf8', use_unicode=True, - ssl=self._get_ssl_parameters()) + ssl=self._get_ssl_parameters(), + connect_timeout=60) cursor = connection.cursor() logger.debug("MySQL running query: %s", query) cursor.execute(query)