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

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

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

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

看看我的運(yùn)行結(jié)果

復(fù)制代碼 代碼如下:

>> 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)

相關(guān)文章

  • 為什么MySQL 使用timestamp可以無(wú)視時(shí)區(qū)問(wèn)題.

    為什么MySQL 使用timestamp可以無(wú)視時(shí)區(qū)問(wèn)題.

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

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

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

    MySQL性能優(yōu)化

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

    mysql的存儲(chǔ)過(guò)程、游標(biāo) 、事務(wù)實(shí)例詳解

    這篇文章主要介紹了mysql的存儲(chǔ)過(guò)程、游標(biāo) 、事務(wù)實(shí)例詳解的相關(guān)資料,這里舉實(shí)例說(shuō)明MySQL 存儲(chǔ)過(guò)程與游標(biāo)和事務(wù),需要的朋友可以參考下
    2017-08-08
  • MYSQL8如何快速修改root密碼

    MYSQL8如何快速修改root密碼

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

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

    下面小編就為大家?guī)?lái)一篇老生常談mysql event事件調(diào)度器(必看篇)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2017-03-03
  • MySQL?中常見(jiàn)的幾種高可用架構(gòu)部署方案解析

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

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

    完美解決mysql啟動(dòng)后隨即關(guān)閉的問(wèn)題(ibdata1文件損壞導(dǎo)致)

    下面小編就為大家?guī)?lái)一篇完美解決mysql啟動(dòng)后隨即關(guān)閉的問(wèn)題(ibdata1文件損壞導(dǎo)致)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2017-03-03
  • MySQL慢查詢以及重構(gòu)查詢的方式記錄

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

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

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

    因?yàn)橐粋€(gè)項(xiàng)目交接需要需要將mysql物理備份文件還原至MySQL5.7,并且將mysql5.7升級(jí)到MySQL8.0,下面這篇文章主要給大家介紹了關(guān)于MySQL5.7升級(jí)MySQL8.0的完整卸載與安裝及連接Navicat的相關(guān)資料,需要的朋友可以參考下
    2023-03-03

最新評(píng)論