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


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


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

SELECT @@global.max_execution_time


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

SET global max_execution_time = 30000;

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM