微信扫一扫 分享朋友圈

已有 961 人浏览分享

[服務器疑問] mysql資料庫連線超時問題

[複製鏈接]

集團新軍

Rank: 1

26

威望

193

金錢

2

A幣
主題
2
帖子
10
精華
0
綜合社群主題發文量
5
電玩社群主題發文量
0
娛樂社群主題發文量
0
技術社群主題發文量
0
閱讀權限
10
註冊時間
2021-4-15
  • TA的每日心情

    2021-8-26 14:11
  • 簽到天數: 39 天

    連續簽到: 1 天

    [LV.5]常住居民I

    t0958593678 發表於  2021-5-27 11:26:22 | 顯示全部樓層 | 閱讀模式
    本帖最後由 t0958593678 於 2021-5-27 17:43 編輯

    小弟最近在研究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.

    導致進入選角時都變成空白:


    小弟也在Settings.ini檔使用了autoReconnect=true,結果問題一樣。所以希望各位大大們能幫忙小弟指點迷津,謝謝。
    共收到 0 A幣
    打賞榜
    暫無
    暫無
    暫無
    暫無
    ----
    暫無
    ----
    暫無
    ----
    暫無
    ----
    您需要登錄後才可以回帖 登錄 | 註冊會員

    本版積分規則

    10

    發文

    193

    金錢

    2

    A幣

    ----------榮譽勳章----------

    熱門推薦
    圖文推薦
    • 聯繫我們

    小黑屋|AICL社群娛樂集團

    GMT+8, 2024-3-29 19:59 , 網路刷新 0.101470 秒 .

    歡迎來到 AICL網路社群

    版權AICL社群所有 2011-2021.

    Total:123 Today:213 Online:322