Board logo

標題: [介紹] 解決 "ERROR 2006 (HY000): MySQL server has gone away" [打印本頁]

作者: altis    時間: 2013-2-19 00:19     標題: 解決 "ERROR 2006 (HY000): MySQL server has gone away"

最近要匯入大檔案的 sql 備份檔時...遇到了這個錯誤...
ERROR 2006 (HY000): MySQL server has gone away

上網查了一下...原來要在 /etc/my.cnf 上面修改兩個參數就可以了...

max_allowed_packet = 64M
wait_timeout = 6000

之後mysql 再重啟就ok囉~~





歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) Powered by Discuz! 6.0.0