Linux系统安装MySQL时,将MySQL-5.6.17-1.el6.x86_64.rpm-bundle.tar包打开,有7个rpm文件,如下:MySQL-client-5.6.17-1.el6.x86_64.rpmMySQL-devel-5.6.17-1.el6.x86_64.rpmMySQL-embedded-5.6.17-1.el6.x86_64.rpmMySQL-server-5.6.17-1.el6.x86_64.rpmMySQL-shared-5.6.17-1.el6.x86_64.rpmMySQL-shared-compat-5.6.17-1.el6.x86_64.rpmMySQL-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使用命令:yum -y install libaio将libaio库先行安装,再来安装embeded或server,就OK。