MySQL error Query execution was interrupted, maximum statement execution time exceeded

时间:2021-06-21 20:46:21   收藏:0   阅读:0

MySQL 查询时,报如下错:
Query execution was interrupted, maximum statement execution time exceeded


查询数据库最大语句执行时间,默认为10s,单位是毫秒

SELECT @@global.max_execution_time


设置最大执行时间, 设置为30s

SET global max_execution_time = 30000;

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!