본문 바로가기
카테고리 없음

EC2 에서 mysql 설치시

by james_janghun 2024. 4. 2.
Total                                                                                                                                                                               34 MB/s |  67 MB  00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


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.36-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[root@ip-10- bin]# sudo systemctl start mysqld
Failed to start mysqld.service: Unit not found.

 

이런 에러 발생시

 

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023

 

로 해결가능

 

 

 

출처:

https://stackoverflow.com/questions/77884025/im-using-amazon-linux-and-trying-to-install-mysql-in-ec2-but-i-keep-getting-th