Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of installing error: Failed dependencies in mysql

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to solve the problem of mysql installation of error: Failed dependencies, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Install the mysql database with the error message error: Failed dependencies:, as follows:

[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

Solution: on rpm, specify the-- nodeps and-- force parameters for installation. As follows:

[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

Initialize MySQL database: [OK]

Starting mysqld: [OK]

[root@localhost ~] # ps-ef | grep mysql

Root 25531 10 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

Thank you for reading this article carefully. I hope the article "how to solve the problem of installing error in mysql: Failed dependencies" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report