修改最大连接数
vim /etc/f
max_connections=5000
重启电脑:
systemctl restart mysqld
查询当前最大连接数:
show variables like '%max_connections%';
Mysql8上还有个mysqlx_max_connections
show variables like ‘%max_connection%’,myxqlx_max_connections是X protocal connection,一般没用到。
如果觉得《【mysql 最大连接数】5分钟快速修改mysql最大连接数》对你有帮助,请点赞、收藏,并留下你的观点哦!