Mysql Too many connections

Linux环境下:

打开配置文件 添加一下配置 vi /etc/my.cnf  并新增以下配置

 max_connections=1000
 
然后重启mysql服务
原文地址:https://www.cnblogs.com/arebirth/p/mysqlconnecttomany.html