数据库

 首页 > 数据库 > MySql > 安装MYSQL错误“conflicts with file from package mysql-libs-*” 解决方法

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

分享到:
【字体:
导读:
         摘要:安装MYSQL的时候时:错误现象:[root@localhost opt]# rpm -ivh MySQL-server-5.5.32-1.el6.x86_64.rpm Preparing... ########################################### [10...

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

安装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-*” 解决方法
分享到:
Hive的UDF实现详解
Hive的UDF实现详解Hive自身查询语言HQL能完成大部分的功能,但遇到特殊需求时,需要自己写UDF实现。以下是一个完整的案例。 1、eclipse中编写UDF ①项目中加入hive的lib下的所有jar包和Hadoop中share下hadoop-common-2.5.1.jar(Hadoop目前最新版本2.5.1)。 ②UDF类要继承org.apache.hadoop.hive.ql.exec.UDF类,类中要实...
Oracle分析函数PERCENTILE_CONT
Oracle分析函数PERCENTILE_CONT查询各部门中薪水分布处于25%、50%、75%位置的人的薪水,percent_rank()是确定排行中的相对位置。 SQL> select e.ename,e.sal,e.deptno,        percent_rank() over(partition by deptno order by sal desc) p_rank,        PERCENTILE_CONT(0) within group(order by sal desc)   ...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……