0
点赞
收藏
分享

微信扫一扫

一招破“Too many connections”

小a草 2023-12-04 阅读 37

一招破“ERROR 1040 (HY000): Too many connections”

shell> mysql -S /tmp/mysql_mysql57_1.sock
ERROR 1040 (HY000): Too many connections

解决方案

1、得到mysqld进程号

shell> ps aux | grep /tmp/mysql_mysql57_1.sock | grep -v root | awk '{print $2}'

2、使用 gdb 调试器设置 max_connections 变量的值为 1500

gdb -p 16884 -ex "set max_connections=1500" -batch

一招破“Too many connections”_解决方案

3、再次连接MySQL,顺利登录。


举报

相关推荐

0 条评论