programing

Centos 6.5 X86_64에 MariaDB 설치

goodcopy 2023. 1. 20. 16:25
반응형

Centos 6.5 X86_64에 MariaDB 설치

"yum install MariaDB-server MariaDB-client"를 통해 Centos 6.5에 MariaDB를 설치할 때 서버에 "트랜잭션 검사 오류:

file /usr/share/mysql/czech/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/danish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/dutch/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/english/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/estonian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/french/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/german/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/greek/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/hungarian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/italian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/japanese/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/korean/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/norwegian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/polish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/portuguese/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/romanian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/russian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/serbian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/slovak/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/spanish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/swedish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /usr/share/mysql/ukrainian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64 file /etc/my.cnf from install of MariaDB-common-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64

Error Summary -------------

"저도 똑같이 제안해 주세요.

같은 문제를 안고 있었는데, 제게는 이렇게 작용했습니다.

달려.rpm -qa | grep -i mysql그 결과 다음과 같은 패키지가 설치되었습니다.

MySQL-devel-advanced-5.5.27-1.el6.x86_64
MySQL-shared-advanced-5.5.27-1.el6.x86_64
mysql-connector-odbc-5.3.4-1.x86_64
MySQL-client-advanced-5.5.27-1.el6.x86_64

그렇게

yum remove MySQL-devel-advanced-5.5.27-1.el6.x86_64
yum remove ...

요점을 알겠죠?

MariaDB 패키지를 설치하는 순서는 어떻게 됩니까?

먼저 mysql-libs를 삭제하셨나요?

rpm - e --sysql-libs

그럼 해봐

yum 설치 MariaDB-client MariaDB-common MariaDB-compatible MariaDB-devel MariaDB-server MariaDB-shared

다음의 방법으로 인스톨 할 수도 있습니다.

rpm -ivh MariaDB-*

[1] 먼저 mysql을 제거해야 합니다.

    service mysql stop
    yum remove mysql

MySQL 버전이 MariaDB 버전과 호환되지 않는 한 디렉토리 /var/lib/mysql을 삭제하십시오(여전히 제거할 수 있습니다).

[2] mysql이 사라지면 yum에 적절한 저장소를 추가해야 합니다.MariaDB는 다음과 같은 저장소 구성 기능을 제공합니다.

    https://downloads.mariadb.org/mariadb/repositories/

/etc/yum.repos.d/아래에 .repo 확장자를 가진 파일에 넣기 위해 필요한 코드가 표시됩니다.

[3] 사용 중인 MariaDb 버전에 필요한 패키지는 다음과 같습니다.

    https://mariadb.com/kb/en/about-the-mariadb-rpm-files/

MySQL 호환성을 위해 MariaDB 호환성이 필요합니다(MariaDB 10.x의 InnoDB 지원 포함).

[4] 설치 시작:

    yum install MariaDB-server MariaDB-client MariaDB-compat MariaDB-shared

[5] 설치 후 가장 먼저 해야 할 일은 액세스 보안을 확보하는 것입니다.실행:

    mysql_secure_installation

다 했어요.

저도 같은 문제가 있었어요.

충돌 파일 하나를 찾아서 이렇게 의존하려고 하면...

rpm -qf /usr/share/mysql/english/errmsg.sys

이 패키지를 받았습니다.mariadb-libs-5.5.35-3.el7.x86_64 이 패키지를 제거한 후 MariaDB를 설치할 수 있습니다.

yum remove mariadb-libs-5.5.35-3.el7.x86_64

언급URL : https://stackoverflow.com/questions/22352110/installation-of-mariadb-on-centos-6-5-x86-64

반응형