Hi,
first of all, sorry about my bad English.
I would like to optimize mysql, i have the default mysql (cpanel) settings right now :
Here is my mysqltuner.pl result
I would really appreciate some help to optimize my.cnf.
Thank you in advance for your help.
first of all, sorry about my bad English.
I would like to optimize mysql, i have the default mysql (cpanel) settings right now :
Code:
[mysqld]
set-variable = max_connections=500
log-slow-queries
safe-show-database
bind-address = 127.0.0.1
Here is my mysqltuner.pl result
Code:
>> MySQLTuner 1.2.0 - Major Hayden <[email protected]>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.63-cll
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 523M (Tables: 2578)
[--] Data in InnoDB tables: 8M (Tables: 422)
[--] Data in MEMORY tables: 0B (Tables: 25)
[!!] Total fragmented tables: 503
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 11d 18h 35m 3s (36M q [36.255 qps], 1M conn, TX: 277B, RX: 8B)
[--] Reads / Writes: 85% / 15%
[--] Total buffers: 34.0M global + 2.7M per thread (500 max threads)
[OK] Maximum possible memory usage: 1.4G (5% of installed RAM)
[OK] Slow queries: 0% (2/36M)
[OK] Highest usage of available connections: 51% (258/500)
[OK] Key buffer size / total MyISAM indexes: 8.0M/190.4M
[OK] Key buffer hit rate: 95.6% (1B cached / 53M reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (8K temp sorts / 3M sorts)
[!!] Joins performed without indexes: 144980
[!!] Temporary tables created on disk: 26% (580K on disk / 2M total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 0% (64 open / 5M opened)
[OK] Open file limit used: 4% (117/2K)
[OK] Table locks acquired immediately: 99% (44M immediate / 44M locks)
[!!] InnoDB data size / buffer pool: 8.9M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
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
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)
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_cache (> 64)
innodb_buffer_pool_size (>= 8M)
Thank you in advance for your help.
Last edited: