Pernah pake mysqltuner ga banyak membantu bro, thanks tutornya saya coba dulu.
ini saya lampirkan setting saya sebelumnya, koreksi jika ada yang salah :
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
port = 3306
tmpdir = /tmp
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
skip-external-locking
skip-name-resolve
# * Fine Tunning
key_buffer = 50M
max_allowed_packet = 32M
thread_stack = 256K
thread_cache_size = 32
sort_buffer_size = 16M
read_buffer_size = 16M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 8M
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
max_connections = 500
max_connect_errors = 100
table_cache = 8012
thread_concurrency = 16
concurrent_insert = 2
tmp_table_size = 512M
max_heap_table_size = 512M
#
# * Query Cache Configuration
#
query_cache_limit = 128M
query_cache_size = 8M
query_cache_type = 2
#
# * Access Time
#
interactive_timeout = 40
wait_timeout = 15
connect_timeout = 30
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#log_error = /var/log/mysql/error.log
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 5
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 30
max_binlog_size = 200M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
terima kasih.
susah2 gampang jawabnya..
mungkin install dulu mysqltuner
ini ada sedikit info:
my.cnf Optimization for Fun and Savings | On Forums