YUM安装MySQL报错合集

25 篇文章 2 订阅

报错信息

Error:
 Problem: cannot install the best candidate for the job
  - nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  - nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  - nothing provides libssl.so.10(libssl.so.10)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community
  - nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64 from mysql80-community

解决方法

wget http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-4.el8.x86_64.rpm

rpm -ivh mysql80-community-release-el7-7.noarch.rpm

报错信息

Import of key(s) didn't help, wrong key(s)?
Public key for mysql-community-client-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-clie  nt-8.0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-client-plugins-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-commun  ity-client-plugins-8.0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-common-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-comm  on-8.0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-icu-data-files-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-commun  ity-icu-data-files-8.0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-libs-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-libs-8  .0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-server-8.0.36-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-serv  er-8.0.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED

解决方法

去官网下载最新的GPG-KEY即可 ,记得文件的存放路径/etc/pki/rp-gpg/

MySQL官方仓库:https://repo.mysql.com/

 

wget https://repo.mysql.com/RPM-GPG-KEY-mysql
wget https://repo.mysql.com/RPM-GPG-KEY-mysql-2023

但是有意思的是上面这个报错解决了,但是又出现了一个新的error,意思就是找不到file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022这个文件了,对于这个error我这里是将之前下载的RPM-GPG-KEY-mysql-2023改名为RPM-GPG-KEY-mysql-2022即可解决这个问题,改名的话就不介绍了,毕竟这么简单不会有人还不会吧!

Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
通过引用可以看出,当使用yum安装mysql并启动时,可能会出现 "MySQL Daemon failed to start" 的错误信息。 要解决这个问题,可以参考引用,使用以下命令进行安装: ``` [root@localhost mysql# yum -y install mysql mysql-server --nogpgcheck ``` 此外,还可以参考引用中提到的在Linux 7平台上通过bash脚本自动部署mysql 5.7的方式来进行安装和管理。在使用脚本之前需要手动修改部署路径和数据库的版本号。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [yum安装mysql启动报错解决](https://blog.csdn.net/weixin_34104341/article/details/91766777)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [yum安装Mysql5.7报错 warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-libs...](https://blog.csdn.net/qq_55526713/article/details/126087628)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [通过bash脚本自动部署mysql5.7(yum without file move)](https://download.csdn.net/download/dber_ablewang/88275668)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值