mysql 安装出现:error: Failed dependencies:

在安装mysql出现:

[root@node11 mysql]# rpm -ivh MySQL-server-5.5.60-1.el6.i686.rpm 
warning: MySQL-server-5.5.60-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	libaio.so.1 is needed by MySQL-server-5.5.60-1.el6.i686
	libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.5.60-1.el6.i686
	libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6 is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.0) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.1) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.1.2) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.1.3) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.12) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.2) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.2.3) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.3) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.3.3) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.4) is needed by MySQL-server-5.5.60-1.el6.i686
	libc.so.6(GLIBC_2.7) is needed by MySQL-server-5.5.60-1.el6.i686
	libcrypt.so.1 is needed by MySQL-server-5.5.60-1.el6.i686
	libcrypt.so.1(GLIBC_2.0) is needed by MySQL-server-5.5.60-1.el6.i686
	libdl.so.2 is needed by MySQL-server-5.5.60-1.el6.i686
	libdl.so.2(GLIBC_2.0) is needed by MySQL-server-5.5.60-1.el6.i686
	libdl.so.2(GLIBC_2.1) is needed by MySQL-server-5.5.60-1.el6.i686
	libm.so.6 is needed by MySQL-server-5.5.60-1.el6.i686
	libm.so.6(GLIBC_2.0) is needed by MySQL-server-5.5.60-1.el6.i686
	libm.so.6(GLIBC_2.1) is needed by MySQL-server-5.5.60-1.el6.i686
	libpthread.so.0 is needed by MySQL-server-5.5.60-1.el6.i686
	libpthread.so.0(GLIBC_2.0) is needed by MySQL-server-5.5.60-1.el6.i686
	libpthread.so.0(GLIBC_2.1) is needed by MySQL-server-5.5.60-1.el6.i686
	libpthread.so.0(GLIBC_2.2) is needed by MySQL-server-5.5.60-1.el6.i686
	libpthread.so.0(GLIBC_2.3.2) is needed by MySQL-server-5.5.60-1.el6.i686
	librt.so.1 is needed by MySQL-server-5.5.60-1.el6.i686
	librt.so.1(GLIBC_2.2) is needed by MySQL-server-5.5.60-1.el6.i686

需要安装这么多的依赖,yum试了没法,如果手动下载需要安装那么多依赖,真的费时

解决方法:

换一个安装包,下载一个带有依赖的不就解决了

下载地址:

http://mirror.neu.edu.cn/mysql/Downloads/MySQL-5.6/MySQL-5.6.28-1.linux_glibc2.5.i386.rpm-bundle.tar

这是一个镜像网站,速度较快

下载下来进行解压

如果在安装的时候出现这个错误,我当时出现了依赖冲突

[root@node12 mysql]# rpm -ivh MySQL-server-5.6.28-1.linux_glibc2.5.x86_64.rpm 
warning: MySQL-server-5.6.28-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
	file /usr/bin/my_print_defaults from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/my_print_defaults.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/innochecksum from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/myisam_ftdump from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/myisamchk from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/myisamlog from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/myisampack from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_convert_table_format from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_fix_extensions from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_install_db from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_plugin from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_secure_installation from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_setpermission from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_tzinfo_to_sql from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_upgrade from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysql_zap from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysqld_multi from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysqld_safe from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysqldumpslow from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysqlhotcopy from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/mysqltest from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/perror from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/replace from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/resolve_stack_dump from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/bin/resolveip from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/adt_null.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/auth_socket.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/auth_test_plugin.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/daemon_example.ini from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/libdaemon_example.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/mypluglib.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/qa_auth_client.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/qa_auth_interface.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/qa_auth_server.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/semisync_master.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/lib64/mysql/plugin/semisync_slave.so from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/innochecksum.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/myisam_ftdump.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/myisamchk.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/myisamlog.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/myisampack.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql.server.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_convert_table_format.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_fix_extensions.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_install_db.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_plugin.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_secure_installation.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_setpermission.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_tzinfo_to_sql.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_upgrade.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysql_zap.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqlbug.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqld_multi.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqld_safe.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqldumpslow.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqlhotcopy.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/mysqltest.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/perror.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/replace.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/resolve_stack_dump.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man1/resolveip.1.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/man/man8/mysqld.8.gz from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/mysql/errmsg-utf8.txt from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/mysql/fill_help_tables.sql from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/mysql/mysql_system_tables.sql from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/mysql/mysql_system_tables_data.sql from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64
	file /usr/share/mysql/mysql_test_data_timezone.sql from install of MySQL-server-5.6.28-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.60-1.el7_5.x86_64

既然告知我们冲突,我们就把他干掉

找到 mariadb相关的依赖

rpm -qa | grep  mariadb

干掉:

rpm -e --nodeps 将上面找到的依赖放上来

当时我找了这三个依赖,故而我干掉这三个 

rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64 mariadb-devel-5.5.60-1.el7_5.x86_64  mariadb-5.5.60-1.el7_5.x86_64

然后安装就没问题了

[root@node11 mysqlTest]# rpm -e --nodeps mariadb-devel-5.5.60-1.el7_5.x86_64  mariadb-5.5.60-1.el7_5.x86_64
[root@node11 mysqlTest]# rpm -ivh MySQL-server-5.6.28-1.linux_glibc2.5.x86_64.rpm 
warning: MySQL-server-5.6.28-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:MySQL-server-5.6.28-1.linux_glibc################################# [100%]
[root@node11 mysqlTest]# rpm -ivh MySQL-client-5.6.28-1.linux_glibc2.5.x86_64.rpm 
warning: MySQL-client-5.6.28-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:MySQL-client-5.6.28-1.linux_glibc################################# [100%]

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值