最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php的慢速日志引起的Mysql2013错误原因分析
时间:2022-06-24 18:44:38 编辑:袖梨 来源:一聚教程网
Description:
————
If mysql query is longer as request_slowlog_timeout, connection breaks.
Test script:
// request_slowlog_timeout = 10s (at /etc/php5/fpm/php-fpm.conf)
// $mysqli =
// ...
$query = "SELECT SLEEP (15)";
$res = $mysqli->query($query);
if (!$res) {
echo $mysqli->error; // Error Code: 2013. Lost connection to MySQL server during query
exit;
}
Expected result:
—————-
connection must be preserved and the request should be executed
相关文章
- 2025盘点正规虚拟币交易平台前十-最火数字资产交易所币安app推荐 06-16
- 《歧路旅人:大陆的霸者》肥沃土壤快速获取指南 06-16
- 《交错战线》岗岩技能好用吗 06-16
- ChainCatcher 深度参与韩国加密盛会,助力 Web3 生态发展 06-16
- 安全可靠全球交易所加密货币APP排行-最安全现货交易所币安推荐 06-16
- 《斗罗大陆:史莱克学院》伙伴选择有哪些建议 06-16