Heim  >  Artikel  >  Datenbank  >  Linux修改Mysql最大并发连接数

Linux修改Mysql最大并发连接数

WBOY
WBOYOriginal
2016-06-07 15:53:131674Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn