1 编辑/etc/my.cnf文件,增加一行max_connections=10000,默认为100

vim /etc/my.cnf

连接mysql出现too many connections解决方法

2 重启mysql服务

service mysql restart

 

相关文章: