人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動態(tài)

mysql提示got timeout reading communication packets的解決方法

發(fā)布日期:2022-03-12 08:02 | 文章來源:源碼中國

錯誤提示:
user: 'root' host: `localhost' (Got timeout reading communication packets)
MYSQL server has gone away

引起這個原因是不可怕的.原因是更改了系統(tǒng)的斷開時間.

mysql>show gloable variables like "%timeout%";
進行查看
interactive_timeout 的黓認值為28800
wait_timeout 的默認值這:120

根據情況增加吧.
這兩個值是一個全局變量,可以動態(tài)增加,如:
mysql> set global interactive_timeout=28800;
Query OK, 0 rows affected (0.00 sec)
mysql> show global variables like "interactive_timeout";
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| interactive_timeout | 28800 |
+---------------------+-------+
1 row in set (0.00 sec)

可以導致Got timeout reading communication packets錯誤的原因

https://dev.mysql.com/doc/refman/5.5/en/communication-errors.html

可能導致Got Timeout reading communication packets錯誤的原因有如下幾個:

A client attempts to access a database but has no privileges for it.(沒有權限)

A client uses an incorrect password.(密碼錯誤)

A connection packet does not contain the right information.(連接沒有包含正確信息)

It takes more thanconnect_timeoutseconds to obtain a connect packet. (獲取連接信息起過connect_timeout的時長)

The client program did not callmysql_close()before exiting.(客戶端沒有調用mysql_close()函數)

The client had been sleeping more thanwait_timeoutorinteractive_timeoutseconds without issuing any requests to the server. (客戶端的空連接時間過長,超過了wait_timeout和interactive_timeout的時間)

The client program ended abruptly in the middle of a data transfer.(數據傳輸過程中終結)

錯誤排查:

因為我們手機版與pc端的php函數不同步導致的問題,所以仔細檢查一下問題就解決了。

國外穩(wěn)定服務器

版權聲明:本站文章來源標注為YINGSOO的內容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網站,禁止在非www.sddonglingsh.com所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內容來源于網友推薦、互聯網收集整理而來,僅供學習參考,不代表本站立場,如有內容涉嫌侵權,請聯系alex-e#qq.com處理。

實時開通

自選配置、實時開通

免備案

全球線路精選!

全天候客戶服務

7x24全年不間斷在線

專屬顧問服務

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時在線

客服
熱線

400-630-3752
7*24小時客服服務熱線

關注
微信

關注官方微信
頂部