[root@lena ~]# perl mysqltuner.pl
>> MySQLTuner 1.6.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
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.31-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 251M (Tables: 229)
[--] Data in InnoDB tables: 103M (Tables: 551)
[!!] Total fragmented tables: 560
-------- Security Recommendations -------------------------------------------
[!!] User '@lena.sabawebhost.net' is an anonymous account.
[!!] User '@localhost' is an anonymous account.
[OK] All database users have passwords assigned
[!!] There is not basic password file list !
-------- Performance Metrics -------------------------------------------------
[--] Up for: 12h 51m 40s (593K q [12.823 qps], 8K conn, TX: 3B, RX: 90M)
[--] Reads / Writes: 87% / 13%
[--] Binary logging is enabled (GTID MODE: OFF)
[--] Total buffers: 432.0M global + 6.4M per thread (151 max threads)
[OK] Maximum reached memory usage: 540.4M (14.10% of installed RAM)
[OK] Maximum possible memory usage: 1.4G (36.39% of installed RAM)
[OK] Slow queries: 0% (0/593K)
[OK] Highest usage of available connections: 11% (17/151)
[OK] Aborted connections: 0.00% (0/8923)
[OK] Query cache efficiency: 72.2% (386K cached / 535K selects)
[!!] Query cache prunes per day: 132777
[OK] Sorts requiring temporary tables: 0% (115 temp sorts / 72K sorts)
[!!] Joins performed without indexes: 283
[!!] Temporary tables created on disk: 61% (13K on disk / 22K total)
[OK] Thread cache hit rate: 99% (50 created / 8K connections)
[!!] Table cache hit rate: 4% (256 open / 5K opened)
[OK] Open file limit used: 12% (127/1K)
[OK] Table locks acquired immediately: 99% (202K immediate / 202K locks)
[OK] Binlog cache memory access: 100.00% ( 16000 Memory / 16000 Total)
-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 18.7% (50M used / 268M cache)
[OK] Key buffer size / total MyISAM indexes: 256.0M/20.0M
[OK] Read Key buffer hit rate: 100.0% (26M cached / 5K reads)
[!!] Write Key buffer hit rate: 40.7% (3K cached / 2K writes)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 128.0M/103.6M
[OK] InnoDB buffer pool instances: 1
[!!] InnoDB Used buffer: 47.99% (3931 used/ 8191 total)
[OK] InnoDB Read buffer efficiency: 99.99% (37795189 hits/ 37798600 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 19605 writes)
-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Remove Anonymous User account - there is 2 Anonymous account.
MySQL started within last 24 hours - recommendations may be inaccurate
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_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64:
http://bit.ly/1mi7c4C
Beware that open_files_limit (1024) variable
should be greater than table_open_cache ( 256)
Variables to adjust:
query_cache_size (> 16M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
table_open_cache (> 256)