mysql - 无法在 Amazon linux 2 上安装 mysql-community-server

标签 mysql amazon-linux-2

每当我尝试该命令时

sudo yum install mysql-community-server

我收到以下错误

The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package. The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'.

最佳答案

运行以下命令即可解决!

sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

此后需要再次运行该命令

sudo yum install mysql-community-server

关于mysql - 无法在 Amazon linux 2 上安装 mysql-community-server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71195283/

相关文章:

r - 如何在 Amazon Linux 2 上安装更新版本的 R

php - 简单的 MySQL 查询问题 - 获取相关记录,同时也获取不相关的记录

mysql - 提高 SQL 效率

javascript - 连续滚动。 AJAX、PHP、JAVASCRIPT、MYSQL

amazon-web-services - 查找AWS实例是否正在运行Amazon Linux 1或2?

python - 使用 python (django) 进行 AWS Elastic Beanstalk 日志记录

php - mysql 查询获取一些表/数组

PHP MySQL 检查组合并显示特定值

node.js - 将 Lambda 函数更新到新的运行时。为什么 cURL 不再在 AWS Lambda 上的 Node 10 中工作?

django - 在 AL2 上的弹性 beantalk 上运行 Django manage.py shell 命令