我想将 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
没关系。
关于mysql - 通过 yum 从 MariaDB 5.5 升级到 MariaDB 10 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24379692/