/etc/my.cnf
max_connections=2000 wait_timeout=3
然后执行code
service mysqld reload service mysqld restart