解压mysql5.0.22 原代码包:
cd mysql5.0.22
./configure –prefix=/usr/local/mysql –localstatedir=/var/lib/mysql –with-charset=gbk –with-extral-charsets=all –syconfigdir=/etc –enable-thread-safe-client
然后 root权限下安装
make WITH_CHARSET=gbk WITH_XCHARSET=all install clean
make install
cp /mysql5.0.22/support-files/my-medium.cnf /etc/my.cnf
bin/mysql_install_db