ADJ網路實驗室
打印

[介紹] 解決 "ERROR 2006 (HY000): MySQL server has gone away"

解決 "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囉~~





TOP

ARTERY.cn