Mysql too many connections 2018-08-31 Mysql, 笔记 Mysql too many connections 修改 /etc/mysql/my.cnf (ubuntu) /etc/my.cnf (其他Linux) 修改或添加如下内容: 123456789101112[mysqld]port=3306#socket=MySQL#skip-locking#key_buffer=16K#max_allowed_packet=1M#thread_stack=64K#table_cache=4#sort_buffer=64K#net_buffer_length=2Kmax_connections=1000wait_timeout=300 重启Mysql 1sudo service mysql restart