hi
please someone help set my.cnf for my box, currently its seems i dont have a correct one :
i have run the mysqltuner :
thank you
please someone help set my.cnf for my box, currently its seems i dont have a correct one :
Code:
root@server [/]# cat /etc/my.cnf
[mysqld]
innodb_file_per_table=1
local-infile=0
open_files_limit=10192
root@server
Code:
root@server [/usr/local/cpanel/3rdparty/mysqltuner]# /usr/local/cpanel/3rdparty/mysqltuner/mysqltuner.pl
>> 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.68-cll
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 381M (Tables: 1648)
[--] Data in InnoDB tables: 224K (Tables: 14)
[--] Data in MEMORY tables: 124K (Tables: 4)
[!!] Total fragmented tables: 64
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 6d 18h 23m 10s (143M q [246.019 qps], 1M conn, TX: 32B, RX: 14B)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 34.0M global + 2.7M per thread (151 max threads)
[OK] Maximum possible memory usage: 449.2M (2% of installed RAM)
[OK] Slow queries: 0% (95/143M)
[OK] Highest usage of available connections: 43% (65/151)
[OK] Key buffer size / total MyISAM indexes: 8.0M/223.1M
[OK] Key buffer hit rate: 100.0% (301B cached / 52M reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 1% (53K temp sorts / 4M sorts)
[!!] Joins performed without indexes: 12349
[OK] Temporary tables created on disk: 1% (47K on disk / 2M total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 0% (64 open / 7M opened)
[OK] Open file limit used: 1% (112/10K)
[OK] Table locks acquired immediately: 99% (148M immediate / 148M locks)
[OK] InnoDB data size / buffer pool: 224.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
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)
thread_cache_size (start at 4)
table_cache (> 64)