MySQL查看最大串連數,MySQL查看串連數

來源:互聯網
上載者:User

MySQL查看最大串連數,MySQL查看串連數
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服務


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.