Home > Database > Mysql Tutorial > body text

Linux修改Mysql最大并发连接数

WBOY
Release: 2016-06-07 15:53:13
Original
1672 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!