1、查看当前字符集:
2、删除mysql相关目录
3、重新编译
4、安装后工作:
停止mysql服务。
先把master.info和relay有关的日志全部删掉
rm –rf *.bin
rm -rf mysql-bin.*
/usr/local/mysql/bin/mysql_install_db
chown -R mysql /var/lib/mysql
cp /usr/local/src/mysql-5.1.55/support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/bin/mysqld_safe &
/usr/local/mysql/bin/mysqladmin -u root -p password '123456' 登录mysql试试:
/usr/local/mysql/bin/mysql -u root -p