1,修改my.ini
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=100
将它改成更大的数值,如500
2,MySQL的最大连接数默认是100
客户端登录:mysql -uusername -ppassword
设置新的最大连接数为200:mysql> set GLOBAL max_connections=200
显示当前运行的Query:mysql> show processlist
显示当前状态:mysql> show status
退出客户端:mysql> exit
查看当前最大连接数:mysqladmin -uusername -ppassword variables |find "max_con"
如:
C:/mysql/bin>mysqladmin -uroot -p variables | find "max_con"Enter password:| max_connections | 100| max_connect_errors | 10