Maybe can someone help me this
I have a dedicated machine 2 x quad cores prossesors and 16 gig ram
If i run mysqltuner i got this output:
Code: Select all
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.58
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 708M (Tables: 8469)
[--] Data in InnoDB tables: 240M (Tables: 5749)
[--] Data in MEMORY tables: 124K (Tables: 211)
[!!] Total fragmented tables: 6067
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 8h 27m 36s (1M q [63.608 qps], 44K conn, TX: 2B, RX: 375M)
[--] Reads / Writes: 87% / 13%
[--] 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% (0/1M)
[OK] Highest usage of available connections: 9% (14/151)
[OK] Key buffer size / total MyISAM indexes: 8.0M/271.1M
[OK] Key buffer hit rate: 99.8% (535M cached / 855K reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (391 temp sorts / 197K sorts)
[!!] Joins performed without indexes: 11585
[OK] Temporary tables created on disk: 19% (27K on disk / 142K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 0% (64 open / 261K opened)
[OK] Open file limit used: 7% (75/1K)
[OK] Table locks acquired immediately: 99% (2M immediate / 2M locks)
[!!] InnoDB data size / buffer pool: 240.0M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
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
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)
innodb_buffer_pool_size (>= 240M)
and /etc/my.cnf :
Code: Select all
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
query_cache_size = 512M
query_cache_type = 1
query_cache_limit = 1M
query_cache_min_res_unit=2K
max_heap_table_size=128M
thread_cache_size=100
thread_concurrency=16
join_buffer_size=500K
sort_buffer_size=500K
table_cache=5000
tmp_table_size=32M
innodb_buffer_pool_size=12G
log-slow-queries = /var/log/mysql/mysql-slow.log
Somebody advice?
Or a good example?
Thanx in advanced