您好,登录后才能下订单哦!
这篇文章主要介绍了如何解决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-server-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的问题”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。