Linux修改MySQL最大并发连接数


CentOS下测试通过

查看当前系统下mysql设置的最大连接数
[root@localhost ~]# /usr/bin/mysqladmin -uroot -p variables |grep max_connections

| max_connections                | 100  //默认是100

[root@localhost ~]# nano /etc/my.cnf
编辑my.cnf在[mysqld]中加入:
set-variable=max_connections=1000


[root@localhost ~]# service mysqld restart //重启mysql

相关内容