mysql并发连接量设置
vi /etc/my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks max_connections=1000 #在此设置最大连接数 默认是没有这一行的 直接添加即可 symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid
services mysqld restart mysqladmin -uroot -ppasswd variables | grep max_connections | max_connections | 1000
2014年1月3日, PM 01:16:42
版权声明:
作者:龙魂
链接:https://blog.wlzs.cn/mysql%e5%b9%b6%e5%8f%91%e8%bf%9e%e6%8e%a5%e9%87%8f%e8%ae%be%e7%bd%ae/
文章版权归作者所有,未经允许请勿转载。
THE END