root@qurbani:/# mysqltuner
>> MySQLTuner 1.1.1 - 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: muslimrelief_u
Please enter your MySQL administrative password:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.38-0ubuntu0.14.04.1
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in InnoDB tables: 23M (Tables: 32)
[--] Data in MyISAM tables: 5K (Tables: 1)
[!!] Total fragmented tables: 5
-------- Security Recommendations -------------------------------------------
ERROR 1142 (42000) at line 1: SELECT command denied to user 'muslimrelief_u'@'localhost' for table 'user'
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 2d 8h 45m 58s (509K q [2.492 qps], 10K conn, TX: 5B, RX: 59M)
[--] Reads / Writes: 97% / 3%
[--] Total buffers: 168.0M global + 2.8M per thread (200 max threads)
[OK] Maximum possible memory usage: 718.0M (72% of installed RAM)
[OK] Slow queries: 0% (0/509K)
[OK] Highest usage of available connections: 4% (9/200)
[OK] Key buffer size / total MyISAM indexes: 8.0M/4.0K
[OK] Key buffer hit rate: 100.0% (1M cached / 6 reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 56K sorts)
[!!] Temporary tables created on disk: 36% (27K on disk / 74K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 4% (400 open / 8K opened)
[OK] Open file limit used: 18% (187/1K)
[OK] Table locks acquired immediately: 100% (478K immediate / 478K locks)
[OK] InnoDB data size / buffer pool: 23.2M/128.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Enable the slow query log to troubleshoot bad queries
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Set thread_cache_size to 4 as a starting value
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (>= 8M)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
table_cache (> 400)