centos mysql rpm包安装错误解决

[root@MyServer rpm]# rpm -ivh MySQL-server-5.5.29-1.rhel5.x86_64.rpm
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.5.29-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.29-1.rhel5.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.29-1.rhel5.x86_64

解决此问题的方法为:yum install libaio,重新安装mysql出现类似如下错误,是因为rpm包冲突导致,解决办法是卸载先前的包
yum -y remove mysql-libs-5.1* -y的意思就是不用询问是否remove

[root@MyServer rpm]# rpm -ivh MySQL-server-5.5.29-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.29-1.rhel5.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.29-1.rhel5.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64

直接修改数据库管理员密码
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h MyServer password 'new-password'


本文固定链接: http://blog.wwllcchf.com/?p=433 | 吴文龙的个人博客

作者:wuwenlong 于2014年01月26日发表 &
centos mysql rpm包安装错误解决 | 吴文龙的个人博客

报歉!评论已关闭.