Mysql數據庫“Communications link failure due to underlying exception”問題
MySQL默認的空閑等待時間是8個小時,一旦空閑超過8個小時,就會拋出“Communications link failure due to underlying exception”異常,修改/etc/my.cnf(windows下為my.ini),將超時時間設置為30天,在[mysqld]后面加入:
1 wait_timeout=2592000
然后重啟mysql服務即可。