在CentOS6上用RPM包安装MySQL
服务器上安装的是CentOS 6.3,原本用yum安装了MySQL但是版本过低,于是打算用RPM来升级 首先直接到MySQL的官网下载RPM包 http://www.mysql.com/downloads/mysql/#downloads 下载的系统选择Redhat 6就可以了,我安装的是x64的,所以选择了MySQL-server-5.5.29-2.el6.x86_64.rpm和MySQL-server-5.5.29-2.rhel5.x86_64.rpm 然后直接rpm -ivh MySQL-server-5.5.29-2.el6.x86_64.rpm结果告诉我这个: error: Failed dependencies: libaio.so.1()(64bit) is needed by MySQL-server-5.5.29-2.rhel5.x86_64 libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.29-2.rhel5.x86_64 libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.29-2.rhel5.x86_64 mysql conflicts with MySQL-server-5.5.29-2.rhel5.x86_64 MySQL conflicts with mysql-5.1.61-4.el6.x86_64 嗯,意思就是缺少libaio这个包了,于是用yum来简单安装之: yum install libaio 接着再继续安装,结果报告以下错误: error: Failed dependencies: mysql conflicts with MySQL-server-5.5.29-2.rhel5.x86_64 MySQL conflicts with mysql-5.1.61-4.el6.x86_64 原因就是——忘了卸载之前的MySQL了,于是: rpm -qa mysql 得到的结果是: mysql-5.1.61-4.el6.x86_64 用rpm -e mysql 卸载之,再安装……于是这次报告: f...