반응형
yum을 통해 MariaDB 5.5에서 MariaDB 10으로 업그레이드 실패
mariadb를 5.5에서 10으로 업그레이드하고 싶습니다.그러나 "yum update -y"를 실행하면 다음과 같은 화면이 나타납니다.
Upgrading directly from MySQL <unrecognized version package MariaDB-server-5.5.36-1.el6.x86_64
MariaDB-server-5.5.36-1.el6.x86_64 is not installed> to MariaDB 10.0 may not
be safe in all cases. A manual dump and restore using mysqldump is
recommended. It is important to review the MariaDB manual's Upgrading
section for version-specific incompatibilities.
A manual upgrade is required.
- Ensure that you have a complete, working backup of your data and my.cnf
files
- Shut down the MySQL server cleanly
- Remove the existing MySQL packages. Usually this command will
list the packages you should remove:
rpm -qa | grep -i '^mysql-'
You may choose to use 'rpm --nodeps -ev <package-name>' to remove
the package which contains the mysqlclient shared library. The
library will be reinstalled by the MariaDB-shared package.
- Install the new MariaDB packages supplied by Monty Program AB
- Ensure that the MariaDB server is started
- Run the 'mysql_upgrade' program
이 문제를 해결하려면 어떻게 해야 하나요?
제가 직접 고치고, 필요한 사람을 위해 여기에 글을 올립니다.
나는 달린다.
rpm -qa | grep -i '^maria'
화면 표시:
MariaDB-common-10.0.12-1
MariaDB-client-10.0.12-1
MariaDB-server-5.5.38-1
MariaDB-shared-10.0.12-1
"MariaDB-server"는 아직 5.5이므로 중지하고 제거합니다(모든 것을 변경하기 전에 백업하십시오).
yum remove MariaDB-server
다시 설치합니다.
yum install MariaDB-server
화면:
Total size: 56 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : MariaDB-server 1/1
Installed:
MariaDB-server.i386 0:10.0.12-1
재실행:
rpm -qa | grep -i '^maria'
화면 표시:
MariaDB-common-10.0.12-1
MariaDB-client-10.0.12-1
MariaDB-server-10.0.12-1
MariaDB-shared-10.0.12-1
괜찮아요.
최근 MariaDB 공식 웹사이트에서 최신 안정 버전으로 업그레이드하기 위한 단계를 찾았습니다.
/etc/yum.repos.d/아래에서 다음 설정을 사용하여 MariaDB.repo를 추가합니다.
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
sudo yum install MariaDB-server MariaDB-client를 실행합니다.
전체 단계는 이 튜토리얼에서 확인할 수 있습니다.
언급URL : https://stackoverflow.com/questions/24379692/upgrade-to-mariadb-10-from-mariadb-5-5-via-yum-fails
반응형
'itsource' 카테고리의 다른 글
MySQL에서 배치 삽입하는 방법 (0) | 2022.09.18 |
---|---|
변수를 인수로 정의되지 않음 또는 전달되지 않음으로 설정할 수 있습니까? (0) | 2022.09.18 |
개체를 어레이로 변환하려면 어떻게 해야 합니까? (0) | 2022.09.18 |
Swisscom MariaDb Ent의 기본 테이블 스토리지 형식은 무엇입니까? (0) | 2022.09.18 |
SQL: 인접 노드를 유향 그래프로 쿼리합니다. (0) | 2022.09.18 |