首先參考iteye上的一篇博文:
http://haiouc.iteye.com/blog/1779771
從這個臺灣的源下載源碼包比較快:
http://ftp.nchu.edu.tw/Unix/Database/MySQL/Downloads/MySQL-5.1/
其中編譯前的配置命令:
./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extral-charsets=all --enable-thread-safe-client
中的extra誤打成了extral。
另外參考官方的資料:
http://dev.mysql.com/doc/refman/5.1/zh/installing.html#linux-rpm
見第2.8.1節(源碼安裝概述)和2.8.2節(典型配置選項)
安裝完之後開啓mysql服務:
systemctl enable mysqld.service
systemctl start mysqld.service