Error while Installing MySQL in EC2 Jump Server

Please read the post from earlier to learn how to set up a MySQL community server and client on EC2, which serves as a bridge to connect to AWS RDS.

The following error was encountered by many of us during installation.
The GPG keys listed for the “MySQL 8.0 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.
Failing package is: mysql-community-client-8.0.28-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Run the following to import the GPG keys.
[ec99-root@ip-99-9-9-991 ~]$ rpm –import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

And now, run the below to Install MySQL Community Server

[ec99-root@ip-99-9-9-991 ~]$ yum –enablerepo=mysql80-community install mysql-community-server

Hope you find this article helpful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s