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
# cd /usr/local # ln -s mysql5.5 mysql
# cd /usr/local # chown -R mysql.mysql mysql
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql5.5 --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
[mysqld] default-storage-engine=innodb
local-infile=1