mysql版本:mysql5.5.40 or Mariadb 10.0.14
默认max_connections=151
方法1:适用于linux平台
[root@mydata184 ~]# mysqladmin -uroot -p variables |grep max_connections
方法2:适用于mysql client命令
[root@mydata184 ~]#mysql -u root -p
mysql>show variables like "max_connections';
如何修改默认连接数?
加max_connections=***,到my.cnf或者my.ini的mysqld里面
保存退出,重启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