2024년 1월 27일 토요일

Mysql 설치 오류

기존 설치 과정.
[root@Centos7 ~]# rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
Retrieving https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
warning: /var/tmp/rpm-tmp.AwEiPw: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql80-community-release-el7-7  ################################# [100%]
[root@Centos7 ~]# yum install mysql-server mysql-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.anigil.com
 * extras: mirror.anigil.com
 * updates: mirror.anigil.com


Transaction Summary
==============================================================================================================================
Install  4 Packages (+14 Dependent packages)
Upgrade             ( 13 Dependent packages)

Total size: 100 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-devel-8.0.36-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID a8d3785c: NOKEY
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-devel-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

저장소 버전이 바뀌면서 GPG 키값도 바뀐 모양.


저장소 삭제 및 재설치.
[root@Centos7 ~]# rpm -e mysql80-community-release-el7-7.noarch
[root@Centos7 ~]# rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-11.noarch.rpm
Retrieving https://dev.mysql.com/get/mysql80-community-release-el7-11.noarch.rpm
warning: /var/tmp/rpm-tmp.7JRmUq: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql80-community-release-el7-11 ################################# [100%]
[root@Centos7 ~]# yum install mysql-server mysql-devel -y
Loaded plugins: fastestmirror
base                                                                                                   | 3.6 kB  00:00:00
extras                                                                                                 | 2.9 kB  00:00:00
mysql-connectors-community                                                                             | 2.6 kB  00:00:00
mysql-tools-community                                                                                  | 2.6 kB  00:00:00
mysql80-community                                                                                      | 2.6 kB  00:00:00


Installed:
  mysql-community-devel.x86_64 0:8.0.36-1.el7                      mysql-community-libs.x86_64 0:8.0.36-1.el7
  mysql-community-libs-compat.x86_64 0:8.0.36-1.el7                mysql-community-server.x86_64 0:8.0.36-1.el7

Dependency Installed:
  keyutils-libs-devel.x86_64 0:1.5.8-3.el7                          krb5-devel.x86_64 0:1.15.1-55.el7_9
  libcom_err-devel.x86_64 0:1.42.9-19.el7                           libkadm5.x86_64 0:1.15.1-55.el7_9
  libselinux-devel.x86_64 0:2.5-15.el7                              libsepol-devel.x86_64 0:2.5-10.el7
  libverto-devel.x86_64 0:0.2.5-4.el7                               mysql-community-client.x86_64 0:8.0.36-1.el7
  mysql-community-client-plugins.x86_64 0:8.0.36-1.el7              mysql-community-common.x86_64 0:8.0.36-1.el7
  mysql-community-icu-data-files.x86_64 0:8.0.36-1.el7              openssl-devel.x86_64 1:1.0.2k-26.el7_9
  pcre-devel.x86_64 0:8.32-17.el7                                   zlib-devel.x86_64 0:1.2.7-21.el7_9

Dependency Updated:
  e2fsprogs.x86_64 0:1.42.9-19.el7         e2fsprogs-libs.x86_64 0:1.42.9-19.el7     krb5-libs.x86_64 0:1.15.1-55.el7_9
  libcom_err.x86_64 0:1.42.9-19.el7        libselinux.x86_64 0:2.5-15.el7            libselinux-python.x86_64 0:2.5-15.el7
  libselinux-utils.x86_64 0:2.5-15.el7     libsepol.x86_64 0:2.5-10.el7              libss.x86_64 0:1.42.9-19.el7
  openssl.x86_64 1:1.0.2k-26.el7_9         openssl-libs.x86_64 1:1.0.2k-26.el7_9     postfix.x86_64 2:2.10.1-9.el7
  zlib.x86_64 0:1.2.7-21.el7_9

Replaced:
  mariadb-libs.x86_64 1:5.5.56-2.el7

Complete!
[root@Centos7 ~]# mysql -V
mysql  Ver 8.0.36 for Linux on x86_64 (MySQL Community Server - GPL)

강의 때는 왜 안 됐지? 저장소 삭제를 제대로 안 했구나(..)

관련 글

댓글 없음:

댓글 쓰기

크리에이티브 커먼즈 라이선스