04 June 2012

Ubuntu 12.04 and mysql does not start

Once you upgrade to Ubuntu 12.04 and if you had configured mysql to use UTF character set, the mysql server may not start.

This is due to the following deprecated parameters.

default-character-set=utf8
default-collation=utf8_unicode_ci

Replace the above parameters (they are normally in /etc/mysql/my.cnf)

character-set-server = utf8
collation-server = utf8_unicode_ci


Now restart mysql server using the command
sudo service mysql start