日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql服务等待应答超时_从mysql备份报错来看net_read_timeout 和net_write_timeout参数

發布時間:2025/3/15 数据库 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql服务等待应答超时_从mysql备份报错来看net_read_timeout 和net_write_timeout参数 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

概述

今天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, net_read_timeout is the timeout value controlling when to abort在終止讀之前,從一個連接獲得數據而等待的時間秒數;當服務正在從客戶端讀取數據時,net_read_timeout控制何時超時。

net_write_timeout:

The number of seconds to wait for a block to be written to a connection before aborting the write.When the server is writing to the client, net_write_timeout is the timeout value controlling when to abort。在終止寫之前,等待多少秒把block寫到連接;當服務正在寫數據到客戶端時,net_write_timeout控制何時超時


3、修改timeout參數

set global net_read_timeout = 1200;set global net_write_timeout = 9000;

重新測試可正常導出,問題解決


覺得有用的朋友多幫忙轉發哦!后面會分享更多devops和DBA方面的內容,感興趣的朋友可以關注下~

總結

以上是生活随笔為你收集整理的mysql服务等待应答超时_从mysql备份报错来看net_read_timeout 和net_write_timeout参数的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。