接到通知说mysql的连接数不够用了,让看看什么原因。
用root登录进去一看,当前的连接数远远没有达到max_connections 的连接限制。
让同事把错误信息发给我:
C:\Users\e1082>mysql -udev_ivr -pdev_ivr -h 192.168.1.150
ERROR 1203 (42000): User dev_ivr already has more than 'max_user_connections' active connections
原来是超出了max_user_connections的限制。
mysql> show variables like'max_user_connections';
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| max_user_connections | 100 |
+----------------------+-------+
1 row in set (0.00 sec)
正常情况下开发环境不应该出现这个情况,查看processlist后发现有一同事在进行测试,连接未及时释放导致。
--转自
