MySQL 5.6.17 rpm 文件安装顺序
Linux系统安装MySQL时,将MySQL-5.6.17-1.el6.x86_64.rpm-bundle.tar包打开,有7个rpm文件,如下:
MySQL-client-5.6.17-1.el6.x86_64.rpm
MySQL-devel-5.6.17-1.el6.x86_64.rpm
MySQL-embedded-5.6.17-1.el6.x86_64.rpm
MySQL-server-5.6.17-1.el6.x86_64.rpm
MySQL-shared-5.6.17-1.el6.x86_64.rpm
MySQL-shared-compat-5.6.17-1.el6.x86_64.rpm
MySQL-test-5.6.17-1.el6.x86_64.rpm
这些文件是有依赖的,如果安装顺序不正确,文件无法正常安装。文件无法正常安装时,会有错误信息提示如:
使用命令:rpm -ivh
MySQL-test-5.6.17-1.el6.x86_64.rpm
是需要安装test,可能会出现如下消息:
error: Failed dependencies:
MySQL-client is needed by
MySQL-test-5.6.17-1.el6.x86_64
这时先安装client,再重新安装test就可以了。
还有,当安装embeded或者server时,可能会有如下错误信息:
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.6.17-1.el6.x86_64
libaio.so.1()(64bit) is needed by MySQL-server-5.6.17-1.el6.x86_64
使用命令:yum -y install libaio
将libaio库先行安装,再来安装embeded或server,就OK。
文章来自:http://www.cnblogs.com/wusir/p/3739090.html