码迷,mamicode.com
首页 > 数据库 > 详细

安装MYSQL错误“conflicts with file from package mysql-libs-*” 解决方法

时间:2017-06-22 11:11:01      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:com   als   install   alter   rpm   意思   repo   pop   follow   

安装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.rpm
Preparing...                ########################################### [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_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

[root@localhost opt]# 




安装MYSQL错误“conflicts with file from package mysql-libs-*” 解决方法

标签:com   als   install   alter   rpm   意思   repo   pop   follow   

原文地址:http://www.cnblogs.com/lytwajue/p/7063726.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!