我想将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
如何解决此问题?
答案 0 :(得分:1)
我自己解决,我在这里发帖给任何人需要:
我跑,
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
没关系。
答案 1 :(得分:0)
我最近在官方MariaDB网站上找到了升级到最新稳定版本的步骤。
使用以下配置添加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
完整步骤可在此tutorial