欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

mysql性能優(yōu)化腳本mysqltuner.pl使用介紹

 更新時間:2013年02月24日 23:45:56   作者:  
無意中發(fā)現(xiàn)了,major哥們開發(fā)的一個性能分析腳本,很有意思,可以通過這個腳本學學他的思想

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 使用timestamp可以無視時區(qū)問題.

    為什么MySQL 使用timestamp可以無視時區(qū)問題.

    這篇文章主要介紹了為什么MySQL timestamp可以無視時區(qū)問題,幫助大家更好的理解和使用MySQL,感興趣的朋友可以了解下
    2020-12-12
  • MySQL使用select語句查詢指定表中指定列(字段)的數(shù)據(jù)

    MySQL使用select語句查詢指定表中指定列(字段)的數(shù)據(jù)

    本文介紹MySQL數(shù)據(jù)庫中執(zhí)行select查詢語句,查詢指定列的數(shù)據(jù),即指定字段的數(shù)據(jù),需要的朋友可以參考下
    2016-11-11
  • MySQL性能優(yōu)化

    MySQL性能優(yōu)化

    MySQL是目前使用最多的開源數(shù)據(jù)庫,但是MySQL數(shù)據(jù)庫的默認設置性能非常的差,僅僅是一個玩具數(shù)據(jù)庫。因此在產(chǎn)品中使用MySQL數(shù)據(jù)庫必須進行必要的優(yōu)化
    2013-02-02
  • mysql的存儲過程、游標 、事務實例詳解

    mysql的存儲過程、游標 、事務實例詳解

    這篇文章主要介紹了mysql的存儲過程、游標 、事務實例詳解的相關資料,這里舉實例說明MySQL 存儲過程與游標和事務,需要的朋友可以參考下
    2017-08-08
  • MYSQL8如何快速修改root密碼

    MYSQL8如何快速修改root密碼

    MySQL8的改密碼跟MySQL5不同,很多朋友都遇到過這個問題,今天小編給大家講解下MYSQL8如何快速修改root密碼,需要的朋友可以參考下
    2023-05-05
  • 老生常談mysql event事件調(diào)度器(必看篇)

    老生常談mysql event事件調(diào)度器(必看篇)

    下面小編就為大家?guī)硪黄仙U刴ysql event事件調(diào)度器(必看篇)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-03-03
  • MySQL?中常見的幾種高可用架構(gòu)部署方案解析

    MySQL?中常見的幾種高可用架構(gòu)部署方案解析

    MySQL Replication 是官方提供的主從同步方案,用于將一個 MySQL 的實例同步到另一個實例中,這篇文章主要介紹了MySQL?中常見的幾種高可用架構(gòu)部署方案,需要的朋友可以參考下
    2023-04-04
  • 完美解決mysql啟動后隨即關閉的問題(ibdata1文件損壞導致)

    完美解決mysql啟動后隨即關閉的問題(ibdata1文件損壞導致)

    下面小編就為大家?guī)硪黄昝澜鉀Qmysql啟動后隨即關閉的問題(ibdata1文件損壞導致)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-03-03
  • MySQL慢查詢以及重構(gòu)查詢的方式記錄

    MySQL慢查詢以及重構(gòu)查詢的方式記錄

    MySQL的慢查詢,全名是慢查詢?nèi)罩?是MySQL提供的一種日志記錄,用來記錄在MySQL中響應時間超過閥值的語句,這篇文章主要給大家介紹了關于MySQL慢查詢以及重構(gòu)查詢的相關資料,需要的朋友可以參考下
    2021-06-06
  • MySQL5.7升級MySQL8.0的完整卸載與安裝及連接Navicat的步驟

    MySQL5.7升級MySQL8.0的完整卸載與安裝及連接Navicat的步驟

    因為一個項目交接需要需要將mysql物理備份文件還原至MySQL5.7,并且將mysql5.7升級到MySQL8.0,下面這篇文章主要給大家介紹了關于MySQL5.7升級MySQL8.0的完整卸載與安裝及連接Navicat的相關資料,需要的朋友可以參考下
    2023-03-03

最新評論