Tag: MySQL5.5
$ tar zxvpf mysql-5.5.20.tar.gz
$ cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.5 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
$ sudo make install
/usr/local/mysql/mysql_install_db --user=mysql --datadir=/usr/local/mysql5.5/data
# cd /usr/local/mysql # cp support-files/my-small.cnf /etc/my.cnf
[client] default-character-set = utf8 [mysqld] character-set-server = utf8
# cp /usr/local/mysql/support-files/mysql.server /etc/init.d
# /etc/init.d/mysql.server start