当前位置:Gxlcms > 数据库问题 > MySQL中too many connections超出最大连接数的处理方法

MySQL中too many connections超出最大连接数的处理方法

时间:2021-07-01 10:21:17 帮助过:4人阅读

 

再登录即可

mysql> show global variables like ‘max_conn%‘;

+--------------------+-------+

| Variable_name      | Value |

+--------------------+-------+

| max_connect_errors | 10000 |

| max_connections    | 1100  |

+--------------------+-------+

2 rows in set (0.00 sec)

 

要保持一个原则 max_user_connections  < max_connections  

当然,如果是percona这种版本中,有自带的方法,在Percona5.5的thread_pool里面提供了2个参数extra_port和extra_max_connections预留额外的连接,预防连接满了以后我们无法进入数据库进行相应的管理(具体略)

 

MySQL中too many connections超出最大连接数的处理方法

标签:

人气教程排行