Centos下测试通过
查看当前系统下mysql设置的最大连接数
[[email protected] ~]# /usr/bin/mysqladmin -uroot -p variables |grep max_connections
| max_connections | 100 //默认是100
[[email protected] ~]# nano /etc/my.cnf
编辑my.cnf在[mysqld]中加入:
max_connections=1000
[[email protected] ~]# service mysqld restart //重启mysql