참고: 자신의 로컬환경이 아닌 ec2환경에서 해야한다.
sudo yum install mysql
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Failing package is: mysql-community-common-8.0.33-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
이 후, 아래의 코드를 작성하면 mysql이 설치된 것을 확인할 수 있다.
$ sudo dnf install mysql
// mysql 버전확인하기
mysql --version