Oct 17, 2011
cPanel Access Level
Root Administrator

I'm trying to get the best performance out of my server, and then I did run the mysqltuner.pl on my server but yeah, having some problems with applying the settings.. This is my output I get when I run the ./mysqltuner.pl

-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.56
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster 
[--] Data in MyISAM tables: 9M (Tables: 328)
[--] Data in InnoDB tables: 368K (Tables: 20)
[!!] Total fragmented tables: 44

-------- Security Recommendations  -------------------------------------------
[!!] User '[email protected]' has no password set.

-------- Performance Metrics -------------------------------------------------
[--] Up for: 6d 21h 4m 40s (1M q [2.499 qps], 54K conn, TX: 2B, RX: 271M)
[--] Reads / Writes: 62% / 38%
[--] Total buffers: 66.0M global + 3.1M per thread (500 max threads)
[OK] Maximum possible memory usage: 1.6G (42% of installed RAM)
[OK] Slow queries: 0% (0/1M)
[OK] Highest usage of available connections: 1% (9/500)
[OK] Key buffer size / total MyISAM indexes: 8.0M/2.2M
[OK] Key buffer hit rate: 99.5% (2M cached / 13K reads)
[OK] Query cache efficiency: 83.5% (958K cached / 1M selects)
[!!] Query cache prunes per day: 3689
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 42K sorts)
[!!] Joins performed without indexes: 16989
[!!] Temporary tables created on disk: 43% (20K on disk / 47K total)
[OK] Thread cache hit rate: 99% (302 created / 54K connections)
[!!] Table cache hit rate: 0% (80 open / 19K opened)
[OK] Open file limit used: 6% (160/2K)
[OK] Table locks acquired immediately: 99% (434K immediate / 434K locks)
[OK] InnoDB data size / buffer pool: 368.0K/8.0M

-------- Recommendations -----------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    Enable the slow query log to troubleshoot bad queries
    Adjust your join queries to always utilize indexes
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
    query_cache_size (> 24M)
    join_buffer_size (> 512.0K, or always use indexes with joins)
    tmp_table_size (> 24M)
    max_heap_table_size (> 24M)
    table_cache (> 80)
Can any help, and maybe tell how I fix the !! and if it's recommended.

Thank you!
Last edited:


Nov 16, 2011
Pathanamthitta, India
cPanel Access Level
Website Owner
Optimize tables from cpanel-phpmyadmin

Variables to adjust:
Add some configurations to vi /etc/my.cnf
long_query_time = 4
log-slow-queries= /var/lib/mysql/slow.log
After adding above RUN
cd /var/lib/mysql
touch slow.log
chmod 660 slow.log
chown mysql:mysql slow.log
/etc/init.d/mysql restart
Hope it helps .