mysql基本參數查詢

來源:互聯網
上載者:User

標籤:mysql 最大串連數修改

[[email protected]~]#  mysqladmin -f  --socket=/opt/mysql.sock -uroot -p*********  status ;  Uptime: 1296722         # mysql啟動並執行時間(s)Threads: 30            #mysql串連數Questions: 97170647       #用戶端請求mysql總的次數Slow queries: 8787        #慢查詢的次數Opens: 3451            #資料庫開啟表的次數Flush tables: 1          #執行flush table的次數Open tables: 2917        #現在開啟表的個數Queries per second avg: 74.935  #mysql平均每秒請求的個數[[email protected] ~]#
工作中的實戰:故障處理:mysql報串連數超了,解決思路 1.查看當前的串連數 上面的命令2.修改my.cnf  max-connection = n 參數 (重啟生效[mysqld]模組)3.臨時生效 在(mysql> set GLOBAL max_connections=n)(臨時生效)4.兩處都修改以後不用重啟 直接生效


本文出自 “磚家部落格” 部落格,請務必保留此出處http://wsxxsl.blog.51cto.com/9085838/1892773

mysql基本參數查詢

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.