4
我的VPS很經常不能「MySQL服務器已經消失(錯誤2006)」並失去連接。我在my.cnf中增加了變量的值,但條件沒有改善。這裏的my.cnf:修正錯誤的MySQL服務器已經消失
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-storage-engine=myisam
datadir=/var/lib/mysql
old_passwords=1
skip-bdb
skip-innodb
max_allowed_packet = 256M
table_cache= 512M
wait_timeout = 180
max_connections = 2000
net_read_timeout= 180
query_cache_size = 512M
query_cache_limit = 512M
max_user_connections=300
[client]
socket=/var/lib/mysql/mysql.sock
max_allowed_packet = 128M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
你可能做過,但你重新啓動MySQL? – 2013-02-27 12:53:49
我確實重啓了vps – cogabh 2013-02-27 13:03:31