冰楓論壇

 找回密碼
 立即註冊
ads_sugarbook
搜索
查看: 858|回覆: 0

[求助] mysql資料庫連線超時問題

[複製鏈接]

3

主題

0

好友

3

積分

新手上路

Rank: 1

UID
299599
帖子
5
主題
3
精華
0
積分
3
楓幣
80
威望
2
存款
0
贊助金額
0
推廣
0
GP
2
閱讀權限
10
性別
保密
在線時間
17 小時
註冊時間
2021-3-23
最後登入
2021-9-23
發表於 2021-5-27 17:38:26 |顯示全部樓層
本帖最後由 t0958593678 於 2021-5-27 17:42 編輯

小弟最近在研究V113端的伺服器,最近發現伺服器當用戶未登入使用下的閒置狀態時一但超過與Mysql資料庫連線默認8小時。
就會產生這個錯誤訊息:
error loading characters internalcom.mysql.jdbc.exceptions.jdbc4.Communications
Exception: The last packet successfully received from the server was 235,283,552
milliseconds ago.  The last packet sent successfully to the server was 235,283,552 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before
use in your application, increasing the server configured values for client tim
eouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
error updating login statecom.mysql.jdbc.exceptions.jdbc4.Communications Exception: The last packet successfully received from the server was 241,131,104 millise
conds ago.  The last packet sent successfully to the server was 241,131,104 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts,or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

導致進入選角時都變成空白:
登入異常.jpg


小弟也在Settings.ini檔使用了autoReconnect=true,結果問題一樣。所以希望各位大大們能幫忙小弟指點迷津,謝謝。



複製連結並發給好友,以賺取推廣點數
簡單兩步驟,註冊、分享網址,即可獲得獎勵! 一起推廣文章換商品、賺$$
高級模式
B Color Image Link Quote Code Smilies

廣告刊登意見回饋關於我們職位招聘本站規範DMCA隱私權政策

Copyright © 2011-2024 冰楓論壇, All rights reserved

免責聲明:本網站是以即時上載留言的方式運作,本站對所有留言的真實性、完整性及立場等,不負任何法律責任。

而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。

小黑屋|手機版|冰楓論壇

GMT+8, 2024-3-29 08:46

回頂部