programing

Centos 7에서 mysql 설치 문제

stoneblock 2023. 8. 12. 09:47

Centos 7에서 mysql 설치 문제

이전에 Percona, MariaDB 및 mysql을 설치하려고 했습니다.이제 mysql을 설치하려고 합니다.

yum -y install mysql mysql-server

YUM 로그:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.cvut.cz
 * epel: ftp.nluug.nl
 * extras: ftp.cvut.cz
 * rpmforge: ftp.nluug.nl
 * updates: ftp.cvut.cz
Resolving Dependencies
--> Running transaction check
---> Package Percona-Server-server-57.x86_64 0:5.7.11-4.1.el7 will be installed
--> Processing Dependency: Percona-Server-shared-57 for package: Percona-Server-server-57-5.7.11-4.1.el7.x86_64
--> Processing Dependency: Percona-Server-client-57 for package: Percona-Server-server-57-5.7.11-4.1.el7.x86_64
---> Package mariadb.x86_64 1:5.5.44-2.el7.centos will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos for package: 1:mariadb-5.5.44-2.el7.centos.x86_64
Package mariadb-libs is obsoleted by Percona-Server-shared-55, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package Percona-Server-client-57.x86_64 0:5.7.11-4.1.el7 will be installed
---> Package Percona-Server-shared-57.x86_64 0:5.7.11-4.1.el7 will be installed
--> Processing Dependency: Percona-Server-shared-compat-57 for package: Percona-Server-shared-57-5.7.11-4.1.el7.x86_64
---> Package mariadb.x86_64 1:5.5.44-2.el7.centos will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos for package: 1:mariadb-5.5.44-2.el7.centos.x86_64
Package mariadb-libs is obsoleted by Percona-Server-shared-55, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package Percona-Server-shared-compat-57.x86_64 0:5.7.11-4.1.el7 will be installed
---> Package mariadb.x86_64 1:5.5.44-2.el7.centos will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos for package: 1:mariadb-5.5.44-2.el7.centos.x86_64
Package mariadb-libs is obsoleted by Percona-Server-shared-55, but obsoleting package does not provide for requirements
--> Finished Dependency Resolution
Error: Package: 1:mariadb-5.5.44-2.el7.centos.x86_64 (base)
           Requires: mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
           Available: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (base)
               mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

이제 Percona와 mariadb는 그들의 의존성과 함께 제거됩니다.왜 그들은 지금 독립했습니까?

Percona 및 MariaDB 패키지가 종속성으로 설치되고 있습니다. Postfix와 같은 경우 libmysql 클라이언트 라이브러리가 필요할 수 있습니다.

# yum deplist postfix|fgrep mysql
  dependency: libmysqlclient.so.18()(64bit)
  dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit)

사용해 보십시오.yum shell필요에 따라 패키지를 제거하고 설치합니다.예를 들어, 신선한 센트에서MariaDB libs와 함께 제공되는 OS 7 설치는 다음과 같은 작업을 수행할 수 있습니다.

# yum shell 
Loaded plugins: fastestmirror
> remove mariadb-libs
> install Percona-Server-client-56 Percona-Server-shared-56 Percona-Server-server-56
> run

언급URL : https://stackoverflow.com/questions/36030214/troubles-with-mysql-install-on-centos-7