参数 MAX_EXECUTION_TIME 查询超时

MAX_EXECUTION_TIME:

值为0 : 表示不限制

mysql 5.6 及以后,有语句执行超时时间变量,用于在服务端对 select 语句进行超时时间限制;
mysql 5.6 中,名为: max_statement_time (毫秒)
mysql 5.7 以后,改成: max_execution_time (毫秒)

超时报错: ERROR 3024 (HY000): Query execution was interrupted, maximum statement execution time exceeded

原文地址:https://www.cnblogs.com/uphold/p/15202249.html