[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
#wait_timeout=1 # 注意有没有这个,意思是连接在1秒钟内没有动作则断开。供你参考