programing

Mysql이 이미 설치된 Centos 6.9에서 MariaDB를 설치하는 동안 충돌

topblog 2023. 8. 1. 20:14
반응형

Mysql이 이미 설치된 Centos 6.9에서 MariaDB를 설치하는 동안 충돌

Cpanel이 설치된 VPS Centos 6.9 서버가 있으며 이 서버에는 mysql56이 설치되어 있습니다.bencherpnext를 설치하기 위해 mysql을 MariaDB로 바꾸고 싶습니다. 튜토리얼을 따라 다음 방법으로 mysql을 제거했습니다.

yum remove mysql-server
yum remove mysql-libs 

그러나 튜토리얼에 언급된 대로 MariaDB를 설치하려고 했을 때:

yum install MariaDB-server MariaDB-client -y

이 오류가 발생했습니다.

  Transaction Check Error:
  file /usr/bin/mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/msql2mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysql_find_rows from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysql_waitpid from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlaccess from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqladmin from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlbinlog from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlcheck from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqldump from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlimport from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlshow from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlslap from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/msql2mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql_find_rows.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql_waitpid.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlaccess.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqladmin.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlbinlog.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlcheck.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqldump.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlimport.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlshow.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlslap.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64

오류 요약

비슷한 Stack Over Flow 질문을 보았지만 제 상황에 유용한 답변이 없습니다.

mysql-client를 제거하면 이 문제가 해결되었습니다.

yum remove mysql-client

마리아를 설치하기 전에 MySQL56-client 및 기타 MySQL56 패키지도 제거해야 합니다.

언급URL : https://stackoverflow.com/questions/44701573/conflict-while-installing-mariadb-on-centos6-9-that-has-mysql-already-installed

반응형