您好,欢迎访问一九零五行业门户网

安装MYSQL错误“conflictswithfilefrompackagemysql-libs-*”解决方法_MySQL

安装mysql的时候时:
错误现象:
[root@localhost opt]# rpm -ivh mysql-server-5.5.32-1.el6.x86_64.rpm preparing... ########################################### [100%] file /usr/share/mysql/charsets/index.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/armscii8.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/ascii.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/cp1250.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/cp1256.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/cp1257.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/cp850.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64 file /usr/share/mysql/charsets/cp852.xml from install of mysql-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
错误原因:
原因由包冲突引起的!
解决方法:
先移除冲突的libs包,再进行安装。
yum -y remove mysql-libs-5.1.61*
-y的意思就是不用询问是否remove卸载完成之后,
然后再执行命令
rpm -ivh mysql-server-5.5.32-1.el6.x86_64.rpm
安装mysql就可以成功了,如下:
[root@localhost opt]# rpm -ivh mysql-server-5.5.32-1.el6.x86_64.rpmpreparing... ########################################### [100%] 1:mysql-server ########################################### [100%]please remember to set a password for the mysql root user !to do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'alternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. this isstrongly recommended for production servers.see the manual for more instructions.please report any problems with the /usr/bin/mysqlbug script![root@localhost opt]#
其它类似信息

推荐信息