每当我尝试该命令时
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/