Seemingly the MySQL installation might look like an easy task, but you might also face the following error
The GPG keys listed for the "MySQL Community Server" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. on Amazon Linux 2. Let’s solve the issue.
- Take the rpm built-in GPG and MD5 checksum.
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
- Re-run the installation command.
sudo yum install mysql-community-server
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.