mysql max_connections on ubuntu(mysql最大连接数)

内容分享2小时前发布
0 0 0

一、mysql 5.7 on ubuntu 16.04

(1)sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

max_connections=10000

(2)sudo vim /lib/systemd/system/mysql.service

LimitNOFILE=infinity
LimitMEMLOCK=infinity

(3)sudo systemctl daemon-reload
(4)sudo service mysqld restart

二、0x02 mysql 8.0 on ubuntu 20.04

(1)sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

max_connections=10000

(2)sudo service mysqld restart
© 版权声明

相关文章

暂无评论

none
暂无评论...