diff --git a/src/utils_DB_connection.jl b/src/utils_DB_connection.jl index d951005609549a864feaeb904bffdc3f1cdd6eb9..08c90cf9a43718ded3c285f3722c9b04da7b265a 100644 --- a/src/utils_DB_connection.jl +++ b/src/utils_DB_connection.jl @@ -17,9 +17,9 @@ function establish_connection(host::String, user::String, password::String, dbna # Establish connection conn = MySQL.Connection(host, user, password, dbname, port, "nothing") # Temporarily increase max_allowed_packet - size_query = "SET SESSION max_allowed_packet=1073741824;" # Sets max_allowed_packet to 1GB + size_query = "SET GLOBAL max_allowed_packet=1073741824;" # Sets max_allowed_packet to 1GB timeout_query = "SET SESSION wait_timeout = 31536000;" # Sets wait_timeout to 1 year - maxtime_query = "SET SESSION max_execution_time = 604800000;" # Sets max_execution_time to 1 week + maxtime_query = "SET SESSION MAX_STATEMENT_TIME=604800000;" # Sets max_execution_time to 1 week try # Execute session variable adjustments DBInterface.execute(conn, size_query)