https://www.cnblogs.com/caoshousong/p/10845396.html
数据库会报这个,
show variables like '%max_connection%'; 查看最大连接数,发现默认是151
show variables like
'%max_connection%'
; 查看最大连接数,发现默认是151
用netstat -ntp看已经用光了
临时生效
set global max_connections=1000;
永久生效