这篇文章主要介绍了如何解决mysql安装error: Failed dependencies的问题,具有一定借免费主机域名鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
安装mysql数据库,提示错误信息error: Failed dependencies:,详细如下:
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.19-1.el6.x86_64
mysql-community-common(x86-64) = 5.7.19-1.el6 is needed by mysql-community-s免费主机域名erver-5.7.19-1.el6.x86_64
解决办法:在rpm是指定–nodeps和–force参数进行安装。如下所示:
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm –nodeps –force
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing… ########################################### [100%]
1:mysql-community-server ########################################### [100%]
[root@localhost ~]# ps -ef | grep mysql
root 25430 25249 0 17:04 pts/0 00:00:00 grep mysql
[root@localhost ~]# service mysqld start
初始化 MySQL 数据库: [确定]
正在启动 mysqld: [确定]
[root@localhost ~]# ps -ef | grep mysql
root 25531 1 0 17:05 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –socket=/var/lib/mysql/mysql.sock –pid-file=/var/run/mysqld/mysqld.pid –basedir=/usr –user=mysql
mysql 25726 25531 2 17:05 pts/0 00:00:01 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib64/mysql/plugin –user=mysql –log-error=/var/log/mysqld.log –pid-file=/var/run/mysqld/mysqld.pid –socket=/var/lib/mysql/mysql.sock
root 25777 25249 0 17:07 pts/0 00:00:00 grep mysql
感谢你能够认真阅读完这篇文章,希望小编分享的“如何解决mysql安装error: Failed dependencies的问题”这篇文章对大家有帮助,同时也希望大家多多支持云技术,关注云技术行业资讯频道,更多相关知识等着你来学习!
这篇文章将为大家详细讲解有关MySQL 5.6中怎么定位DDL被阻塞的问题,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。对于DDL被阻塞问题的定位,我们主要是基于MySQL 5.7新引入的performance_schema…