问题

Data source rejected establishment of connection, message from server: "Too many connections"

 

原因

数据库超过最大连接数了

查询当前最大连接数

select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS'; 

 

解决方案

 

set global max_connections = 3600;

 

【数据库错误】Data source rejected establishment of connection, message from server: “Too many connections“

 

或者 

要彻底解决问题还是要修改my.cnf配置文件

在“[mysqld]”下面添加“max_connections=1000”

执行:service mysql restart 重新启动MySQL服务
 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2023-03-17
  • 2021-11-17
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案