[root@yunwei1 ~]# mysql -uroot -p
Enter password:
ERROR 1040 (00000): Too many connections
[root@yunwei1 ~]# vi /etc/my.cnf
max_connections=1000
max_user_connections=300 [root@yunwei1 ~]# service mysqld stop
Shutting down MySQL.... [确定]
[root@yunwei1 ~]# service mysqld start
Starting MySQL. [确定]
[root@yunwei1 ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 101
http://www.orczhou.com/index.php/2010/09/mysql-too-many-connections/
重启Mysql :: mysql restart 错误信息:mysql ERROR 1040 (00000): Too many connections 当出现如下情况的时候,避免用户收到影响,先重启下Mysql服务 [root@localhost ~]# service mysqld restart [root@localhost ~]# mysql mysql> select @@global.max_connections; +--------------------------------------+ | @@global.max_connections | +--------------------------------------+ | 100 | +--------------------------------------+ // 也就是说现在的最大连接数是 100,我们把他修改为500,。 mysql> set global max_connections=500; Query OK, 0 rows affected (0.00 sec) 之前在google搜了很多解决方案,有人说修改/etc/my.cnf,据网上说完全没用(本人没有测试,也感觉有点麻烦)! 详细信息尽在 华夏编程社区(HackProLabs) 原文链接:http://cst21cn.5d6d.com/thread-2863-1-1.html