mysql - 通过 yum 从 MariaDB 5.5 升级到 MariaDB 10 失败

标签 mysql mariadb upgrade mariadb-10.4

我想将 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/

相关文章:

java - Hibernate 4 升级 (java.lang.NoSuchMethodError : javax. persistence.spi.PersistenceUnitInfo.getValidationMode())

asp.net - 如何将现有的 ASP.NET 应用程序升级到 ASP.NET vNext

php - 当我使用以下语句更新用户表时,为什么行计数始终为 0

带有数组值的 MySQL 查询

mysql - Sql 存在与 MySql 存在

mysql - 为什么 MySQL (MariaDB) 使用以下查询计算记录数超过 3 分钟?

mysql - sql 查询可以执行这项工作吗?

mysql - 从两个表插入where条件

mysql - 错误号 150 : Foreign key constraint is incorrectly formed

linq - 升级到 4.0 Framework,然后降级,现在找不到 Linq 命名空间?