Home  >  Article  >  Database  >  Linux修改Mysql最大并发连接数

Linux修改Mysql最大并发连接数

WBOY
WBOYOriginal
2016-06-07 15:53:131673browse

查看当前系统下mysql设置的最大连接数 [root@localhost ~]# /usr/bin/mysqladmin -uroot -p variables |grepmax_connections |max_connections | 100 //默认是100 [root@localhost ~]# nano /etc/my.cnf 编辑my.cnf在[mysqld]中加入: set-variable=max_conn

查看当前系统下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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn