2

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

我该如何解决这个问题?

4

2 回答 2

3

我自己修,我在这里发帖供任何需要的人使用:

我跑,

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

没关系。

于 2014-06-24T06:33:31.403 回答
1

我最近在 MariaDB 官方网站上找到了升级到最新稳定版本的步骤。

  1. 在 /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

  2. 运行sudo yum install MariaDB-server MariaDB-client
    完整的步骤可以在本教程中找到

于 2017-10-20T16:37:15.400 回答