[root@ ~]# mysqltuner
>> MySQLTuner 1.6.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at
Для просмотра ссылки Войди или Зарегистрируйся
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.73
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +CSV +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 2G (Tables: 2305)
[--] Data in InnoDB tables: 1M (Tables: 72)
[!!] Total fragmented tables: 135
-------- Security Recommendations -------------------------------------------
[!!] User 'site_24@%' hasn't specific host restriction.
[!!] There is not basic password file list !
-------- Performance Metrics -------------------------------------------------
[--] Up for: 2h 31m 6s (658K q [72.613 qps], 18K conn, TX: 1B, RX: 97M)
[--] Reads / Writes: 89% / 11%
[--] Binary logging is disabled
[--] Total buffers: 34.0M global + 2.7M per thread (151 max threads)
[OK] Maximum reached memory usage: 47.7M (2.55% of installed RAM)
[OK] Maximum possible memory usage: 449.2M (23.96% of installed RAM)
[OK] Slow queries: 0% (6/658K)
[OK] Highest usage of available connections: 3% (5/151)
[OK] Aborted connections: 0.00% (0/18151)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 245K sorts)
[!!] Joins performed without indexes: 8599
[!!] Temporary tables created on disk: 30% (22K on disk / 75K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 0% (64 open / 18K opened)
[OK] Open file limit used: 12% (125/1K)
[OK] Table locks acquired immediately: 99% (773K immediate / 773K locks)
-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 63.0% (5M used / 8M cache)
[OK] Key buffer size / total MyISAM indexes: 8.0M/568.0M
[OK] Read Key buffer hit rate: 99.0% (18M cached / 177K reads)
[!!] Write Key buffer hit rate: 77.9% (262K cached / 57K writes)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 8.0M/2.0M
[!!] InnoDB Used buffer: 6.64% (34 used/ 512 total)
[OK] InnoDB Read buffer efficiency: 98.69% (2030 hits/ 2057 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 1 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 accounts - there are 2 Anonymous accounts.
Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
Set up a Secure Password for user@host ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
Restrict Host for user@% to user@SpecificDNSorIp
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 which have no LIMIT clause
Set thread_cache_size to 4 as a starting value
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64:
Для просмотра ссылки Войди или Зарегистрируйся
Beware that open_files_limit (1024) variable
should be greater than table_open_cache ( 64)
Variables to adjust:
query_cache_size (>= 8M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
table_open_cache (> 64)