Hello,
Here is the revised /etc/my.cnf file with the settings removed that were commented out, those that don't exist or are the defaults removed and those that were under the entirely wrong section moved up to the right section. Since you are using MySQL 5.0, you also need to create the slow query log to get it logging, which I've added the entry into /etc/my.cnf but you'll have to then run the commands I provide after the /etc/my.cnf contents to get it working to log.
[mysqld]
local-infile = 0
skip-bdb
key_buffer_size = 384M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 2M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M
table_cache = 2048
record_buffer = 1M
thread_cache_size = 32
tmp_table_size = 80M
max_heap_table_size = 80M
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 64M
query_cache_type = 1
max_connections = 500
max_user_connections = 25
interactive_timeout = 30
wait_timeout = 30
connect_timeout = 10
long_query_time = 2
innodb_buffer_pool_size = 2G
innodb_additional_mem_pool_size = 20M
innodb_log_buffer_size = 32M
log-slow-queries = /var/lib/mysql/slow.log
[myisamchk]
key_buffer_size=64M
sort_buffer_size=64M
read_buffer_size=16M
write_buffer_size=16M
Code:
cd /var/lib/mysql
touch slow.log
chmod 660 slow.log
chown mysql:mysql slow.log
/etc/init.d/mysql restart
Thanks.