今天先把linux自带的mysql删除后,安装新版本的mysql。
安装mysql时候出现错误MySQL conflicts with mysql-5.0.77-4.el5_6.6.x86_64,如下图所示:
[root@localhost OMS]# rpm -ivh MySQL-server-advanced-5.5.8-1.rhel5.i386.rpm
error: Failed dependencies:
MySQL conflicts with mysql-5.0.77-4.el5_6.6.x86_64
MySQL conflicts with mysql-5.0.77-4.el5_6.6.i386
后查资料,用rpm -e confictcompoent -- nodeps解决。如下举例说明:
[root@localhost OMS]# rpm -e mysql-5.0.77-4.el5_6.6.x86_64 --nodeps
[root@localhost OMS]# rpm -e mysql-5.0.77-4.el5_6.6.i386 --nodeps
然后安装就顺利了:
[root@localhost OMS]# rpm -ivh MySQL-server-advanced-5.5.8-1.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server-advanced ########################################### [100%]
转载于:https://blog.51cto.com/shiweifei/1703618