mysql最大连接次数设置(Data source rejected establishment of connection, message from server: "Too many connections")

show variables like "max_connections"; #显示最大连接数

set global max_connections=1000; #设置最大连接数1000

show variables like "max_connections"; #显示最大连接数

 但是重启数据库之后需要重新设置。

永久解决的办法:

my.ini文件

 

posted @ 2023-06-28 19:35  _Lawrence  阅读(76)  评论(0)    收藏  举报