I'm in the process of updating my server.
I have put centOS 5.5 on it with Apache 2.2.17, PHP 5.3.6, mySQL 5.5.10-1.linux2.6.i386.
I'm having problems starting the mysql and think it is because of the my.cnf file.
I'm very new to this - am a teacher not a tech person!
My .cnf file looks like this at the moment
(at the top there is a lot of intro stuff)
# The following options will be passed to all MySQL clients
[client]
#password = your_password (here - a simple question, should I take away the #and include the mysql password I set? Sorry for the silly question!)
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=utf8
[mysqld]
port =3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size =8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
thread_concurrency = 8
default-character-set=utf8
skip-character-set-client-handshake
log-bin=mysql-bin
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer = 2M
wirte_buffer = 2M
[mysqlhotcopy]
interactive-timeout
There are other things there but all after #keys so not active. I have a Dell poweredge 2900 with 4GB and intel quad-core processor 2.33GHz 2X6MB L2 Cache, 1333MHz.
Firstly, if someone could be so kind as to tell me what here is stopping mysql starting (I get the following error when I try to start mysql "The server quit without updating PID file (/var/lib/mysql/....pid" but can start it if I take the my.cnf file out.)
Secondly, with the server specs and setup I have, are there any variables in the .cnf file that could be varied to improve performance.
Also, is the utf8 info I have included here correct? I have read on the net that the latest (5.5) mysql doesn't like the "default-character-set=utf8" setting.
I have looked at the docs but they don't seem to include the variables listed here.
Any assistance would be greatly appreciated.
Kind regards,
Eric Hagley