AlternativeWeb
Active Member
Can someone help me with "my.cnf" configuration?
I had been playing around with this for the past few days and I cannot figure out what to do with it.
My server keeps using swap space every 6-12 hours and I'm not sure how to configure this.
I had been playing around with this for the past few days and I cannot figure out what to do with it.
My server keeps using swap space every 6-12 hours and I'm not sure how to configure this.
Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
max_connections = 500
skip-locking
key_buffer = 256M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 16M
interactive_timeout = 25
wait_timeout = 1000
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
tmp_table_size = 16M
max_heap_table_size = 16M
#skip-innodb
user=mysql
local-infile=0
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 8192
[isamchk]
key_buffer = 256M
sort_buffer = 256M
read_buffer = 16M
write_buffer = 16M
[myisamchk]
key_buffer = 256M
sort_buffer = 256M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
skip-networking
#log-slow-queries = /var/log/mysql-slow.log