mysql性能優(yōu)化腳本mysqltuner.pl使用介紹
MySQLTuner 下載地址:http://github.com/rackerhacker/MySQLTuner-perl
MySQLTuner 使用方法:
Downloading and using MySQLTuner is actually a very simple process:
wget mysqltuner.pl
perl mysqltuner.pl
If you'd rather not invoke perl every time, just make it executable:
chmod u+x mysqltuner.pl
./mysqltuner.pl
» Latest development version
If you want to get the bleeding edge commits, you can check out the latest code with git:
git clone git://github.com/rackerhacker/MySQLTuner-perl.git
看看我的運行結(jié)果
>> MySQLTuner 1.1.1 - Major Hayden
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.43-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated -InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 889M (Tables: 479)
[--] Data in MEMORY tables: 1M (Tables: 4)
[!!] Total fragmented tables: 29
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 12h 55m 27s (4M q [105.230 qps], 295K conn, TX: 9B, RX: 546M)
[--] Reads / Writes: 82% / 18%
[--] Total buffers: 432.0M global + 6.3M per thread (500 max threads)
[!!] Maximum possible memory usage: 3.5G (175% of installed RAM)
[OK] Slow queries: 0% (48K/4M)
[OK] Highest usage of available connections: 3% (16/500)
[OK] Key buffer size / total MyISAM indexes: 384.0M/332.6M
[OK] Key buffer hit rate: 100.0% (2B cached / 205K reads)
[OK] Query cache efficiency: 49.3% (1M cached / 3M selects)
[!!] Query cache prunes per day: 268042
[OK] Sorts requiring temporary tables: 0% (10 temp sorts / 122K sorts)
[OK] Temporary tables created on disk: 19% (4K on disk / 22K total)
[OK] Thread cache hit rate: 99% (16 created / 295K connections)
[!!] Table cache hit rate: 18% (256 open / 1K opened)
[OK] Open file limit used: 19% (497/2K)
[!!] Table locks acquired immediately: 88%
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Reduce your overall MySQL memory footprint for system stability
Increase table_cache gradually to avoid file descriptor limits
Optimize queries and/or use InnoDB to reduce lock wait
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 32M)
table_cache (> 256)
- MySQL性能優(yōu)化的一些技巧幫助你的數(shù)據(jù)庫
- MySQL性能優(yōu)化
- MySQL DBA教程:Mysql性能優(yōu)化之緩存參數(shù)優(yōu)化
- MySQL性能優(yōu)化之路---修改配置文件my.cnf
- MySQL性能優(yōu)化配置參數(shù)之thread_cache和table_cache詳解
- MySQL性能優(yōu)化之max_connections配置參數(shù)淺析
- MySQL性能優(yōu)化之table_cache配置參數(shù)淺析
- MySQL性能優(yōu)化之Open_Table配置參數(shù)的合理配置建議
- php導入大量數(shù)據(jù)到mysql性能優(yōu)化技巧
- SQL性能優(yōu)化之定位網(wǎng)絡性能問題的方法(DEMO)
相關文章
為什么MySQL 使用timestamp可以無視時區(qū)問題.
這篇文章主要介紹了為什么MySQL timestamp可以無視時區(qū)問題,幫助大家更好的理解和使用MySQL,感興趣的朋友可以了解下2020-12-12MySQL使用select語句查詢指定表中指定列(字段)的數(shù)據(jù)
本文介紹MySQL數(shù)據(jù)庫中執(zhí)行select查詢語句,查詢指定列的數(shù)據(jù),即指定字段的數(shù)據(jù),需要的朋友可以參考下2016-11-11老生常談mysql event事件調(diào)度器(必看篇)
下面小編就為大家?guī)硪黄仙U刴ysql event事件調(diào)度器(必看篇)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-03-03完美解決mysql啟動后隨即關閉的問題(ibdata1文件損壞導致)
下面小編就為大家?guī)硪黄昝澜鉀Qmysql啟動后隨即關閉的問題(ibdata1文件損壞導致)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-03-03MySQL5.7升級MySQL8.0的完整卸載與安裝及連接Navicat的步驟
因為一個項目交接需要需要將mysql物理備份文件還原至MySQL5.7,并且將mysql5.7升級到MySQL8.0,下面這篇文章主要給大家介紹了關于MySQL5.7升級MySQL8.0的完整卸載與安裝及連接Navicat的相關資料,需要的朋友可以參考下2023-03-03