概述
今天mysql备份的crontab自动运行的时候,出现了报警,报警内容如下:
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `fsl_rate_log` at row: 763014
下面简单提供下解决思路和方法。
1、修改max_allow_packet数据库参数
正常是max_allow_packet影响了,修改为1G后还是一样
2、查看timeout的值
net_read_timeout :
The number of seconds to wait for more data from a connection before aborting the read. When the server is reading from the client,