Optimalize MySQL kinerja dengan mysqltuner.pl di Debian / Blankon / Ubuntu

Tutorial ini bagi anda yang merasa kinerja MySQL agak berat atau lambat, ini ada trik untuk mengakalinya.

Step 1 :

Download script mysqltuner.pl

Buka terminal
cd /usr/bin

wget http://mysqltuner.pl/mysqltuner.pl

Step 2 :

Jalankan script mysqltuner.pl

isikan username dengan root dan password ( password anda buat)

root@DotoVR:/usr/bin# mysqltuner.pl

 >>  MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
Please enter your MySQL administrative login: root
Please enter your MySQL administrative password: 

-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.49-3
[OK] Operating on 32-bit architecture with less than 2GB RAM

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster 
[--] Data in MyISAM tables: 2K (Tables: 10)
[!!] InnoDB is enabled but isn't being used
[!!] Total fragmented tables: 1

-------- Security Recommendations  -------------------------------------------
[OK] All database users have passwords assigned

-------- Performance Metrics -------------------------------------------------
[--] Up for: 2h 16m 33s (137 q [0.017 qps], 52 conn, TX: 18K, RX: 8K)
[--] Reads / Writes: 100% / 0%
[--] Total buffers: 58.0M global + 2.7M per thread (151 max threads)
[OK] Maximum possible memory usage: 463.8M (28% of installed RAM)
[OK] Slow queries: 0% (0/137)
[OK] Highest usage of available connections: 0% (1/151)
[OK] Key buffer size / total MyISAM indexes: 16.0M/114.0K
[!!] Query cache efficiency: 0.0% (0 cached / 87 selects)
[OK] Query cache prunes per day: 0
[OK] Temporary tables created on disk: 24% (48 on disk / 200 total)
[OK] Thread cache hit rate: 98% (1 created / 52 connections)
[OK] Table cache hit rate: 23% (33 open / 139 opened)
[OK] Open file limit used: 6% (66/1K)
[OK] Table locks acquired immediately: 100% (52 immediate / 52 locks)

-------- Recommendations -----------------------------------------------------
General recommendations:
    Add skip-innodb to MySQL configuration to disable InnoDB
    Run OPTIMIZE TABLE to defragment tables for better performance
    MySQL started within last 24 hours - recommendations may be inaccurate
    Enable the slow query log to troubleshoot bad queries
Variables to adjust:
    query_cache_limit (> 1M, or use smaller result sets)
Semoga bermanfaat!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s