MySQL 5.7 报错 Error 1040: Too many connections

查看最大连接数
show variables like ‘max%conn%’;
查看当前连接情况
show full processlist;
修改最大连接数
vi /etc/my.cnf
max_connections = 500