AWS Private Subnet 구간 RDS 접속 테스트를 하기 위하여 EC2 구성하였습니다.
이후 아래의 명령어로 MySQL 설치 시 오류가 발생하였습니다.
[user@ip-10-0-0-000 ~]$ sudo dnf install https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
[user@ip-10-0-0-000 ~]$ sudo dnf install mysql-community-server
...
-----------------------------------------------------------------------
Problem: conflicting requests
- nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
- nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
- nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
오류 원인은 Linux Kernel과 호환되지 않는 MySQL 리포지토리 설치했기 때문입니다.
Linux | Kernel | Mysql |
Amazon Linux2 | CentOS / RHEL7 | mysql8-el7 |
Amazon Linux 2023 | Fedora / RHEL9 | mysql8-el9 |
1. Amazon Linux 2023 버전 명령어 예시
[user@ip-10-0-0-000 ~]$ sudo dnf install https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
[user@ip-10-0-0-000 ~]$ sudo dnf install mysql-community-server
2. Amazon Linux 2 버전 명령어 예시
[user@ip-10-0-0-000 ~]$ sudo yum install https://dev.mysql.com/get/mysql80-community-release-e17-5.noarch.rpm
[user@ip-10-0-0-000 ~]$ sudo yum install mysql-community-server
저는 Amazon Linux 2023 버전으로 1번 명령어 예시로 적용하였습니다.
하지만 아래와 같이 오류가 추가로 발생한 것을 확인할 수 있습니다. ㅠㅠ
Public key for mysql-community-client-plugins-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-client-plugins-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
구글링 해보고 GPG Key 정보를 업데이트 적용 후 설치를 완료했습니다.
[user@ip-10-0-0-000 ~]$ sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
[user@ip-10-0-0-000 ~]$ sudo dnf update
...
-----------------------------------------------------------------------
Total 171 kB/s | 13 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : mysql80-community-release-el9-5.noarch 1/2
Cleanup : mysql80-community-release-el9-1.noarch 2/2
Verifying : mysql80-community-release-el9-5.noarch 1/2
Verifying : mysql80-community-release-el9-1.noarch 2/2
Upgraded:
mysql80-community-release-el9-5.noarch
Complete!
읽어주셔서 감사합니다.
레퍼런스
반응형
최근댓글