这篇文章主要讲解了“怎么解决MySQL的conflicts with file from package报错问题”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么解决MySQL的conflicts with file from package报错问题”吧!
再给新项目使用rpm安装MySQL的时候,报错:
[root@zhanglin ~]# rpm -ivh MySQL-server-5.6.19-1.el6.x86_64.rpm
Preparing… ########################################### [100%]
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.19-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.19-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.19-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.19-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.19-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
1、查看是否安装了MySQL
[root@zhanglin ~]# rpm -aq|grep mysql
mysql-libs-5.1.61-4.el6.x86_64
2、删除系统自带的。
mysql-libs-5.1.61-4.el6.x86_64的库(这是linux自带的,在装系统的时候被勾选了)所以需要先删除以前的库才能安装!
执行命令:
[root@zhanglin ~]# rpm -e mysql-libs-5.1.61-4.el6.x86_64 ——可能删不掉,因为有些依赖的包
[root@zhanglin ~]# rpm -e mysql-libs-5.1.61-4.el6.x86_64 –nodeps ——强制卸载!
3、再次检查是否删除掉,若删掉就可以rpm安装了。
感谢各位的阅读,以上就是“怎么解决MySQL的conflicts with file from package报错问题”的内容了,经过本文的学习后,相信大家对怎么解决MySQL的conflicts with file from package报错问题这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/202427.html