MySQL performance tuning primer script 中文說明

來源:互聯網
上載者:User

MySQL performance tuning primer script一個簡單好用的mysql最佳化工具,其實一個shell指令碼

下載:

$ wget http://www.day32.com/MySQL/tuning-primer.sh

運行

$ sh tuning-primer.sh all

運行以後會詢問mysql使用者名稱好密碼最好提供mysql的,還會詢問是否在當家目錄自動產生.my.cnf設定檔這裡儲存你的mysql使用者名稱和密碼一般選擇N。

它主要通過查詢mysql中的variables設定和status 並結合當前系統情況給出mysql啟動並執行狀態和建議,主要包括以下內容的檢查

slow query慢速查詢

binlog 二進位日誌

max connections 最大串連數

threads 線程數

key buffer size 關鍵字緩衝

query cache 查詢快取

sort operations 排序

join operations 多表聯結

tmp tables 暫存資料表

open files 開啟檔案數

table cache 表緩衝

table locking 鎖表

table scans 表掃描

innodb status

total memory used 記憶體使用量

 

本文來自:http://srsman.com/2009/03/mysql-performance-tuning-primer-script/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.