Help Configuring my.conf

My current config on a VPS with 256MB RAM/CentOS/Apache:
[mysqld]
max_connections = 400
key_buffer = 16M
myisam_sort_buffer_s ize = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 286
interactive_timeout = 25
wait_timeout = 1000
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 16M
query_cache_type = 1
tmp_table_size = 16M
skip-innodb

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 32M
sort_buffer = 32M
read_buffer = 16M
write_buffer = 16M
I've been reading the MySQL manual and it says if I have at least 256MB of RAM my values should be:

key_buffer_size=64M
table_cache=256
sort_buffer_size=4M
read_buffer_size=1M

And this if I have a busy site:
key_buffer_size=512K
sort_buffer_size=100 K
read_buffer_size=100 K
or
key_buffer_size=512K
sort_buffer_size=16K
table_cache=32
read_buffer_size=8K
net_buffer_length=1K
I have busy MySQL/PHP sites. What is a good configuration? Thanks.

 

 

 

 

Top