Recently came across the problem where mysql server stop running and refusing to start with an error
The server quit without updating PID file (/var/run/mysqld/mysqld.pid)
Checked Mysql error log and found that an invalid usage of charset with collation causing problem.
error log:
141017 12:20:41 mysqld_safe Starting mysqld daemon with
databases from /usr/local/mysql/data
while 15088 [ERROR] COLLATION 'utf8_general_ci' is not
valid for CHARACTER SET 'latin1'
15088 [ERROR] Aborting
In this case mysqld trying to start with
character-set-server = latin1 and collation-server =
utf8_general_ci, which is not valid.
The following is the right charset value for COLLATION
‘utf8_general_ci’
node1 [localhost] {msandbox} ((none)) > SHOW COLLATION LIKE ‘utf8_general_ci’;
…
[Read more]