设置mysql 数据库最大连接数的问题:


vi /etc/my.cnf


添加如下命令:

max_connections=500  //最大连接数为500


保存退出即可。