如何从SQL转储文件升级mariadb?

编程入门 行业动态 更新时间:2024-10-25 07:34:08
本文介绍了如何从SQL转储文件升级mariadb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个由mariadb 10.2的mysqldump生成的sql转储文件.

I have a sql dump file generated by mysqldump of mariadb 10.2.

我想使用mariadb 10.4设置新的数据库服务器,数据来自sql dump文件.

I want to set up a new db server using mariadb 10.4 with data coming from the sql dump file.

在这种情况下是否需要升级过程?如果是这样,我应该先将sql文件还原到db中,然后运行mysql_upgrade还是以某种方式直接升级sql文件,然后还原到db中?

Is the upgrade process necessary in this case? If so, should I first restore the sql file into db and then run mysql_upgrade or somehow directly upgrade the sql file and then restore into the db?

推荐答案

好吧,我建议您遵循MariaDb网站上提供的升级指南.请参阅升级 MariaDB.它列出了有关从一个主要版本的MariaDb升级到另一个主要版本的文章.

Well I would suggest that you follow the upgrade guides given on the MariaDb website. See Upgrading MariaDB. It lists articles on upgrading from one major version of MariaDb to the next.

没有直接从版本10.2升级到10.4的指南,因此您应该首先通过遵循从MariaDB 10.2升级到MariaDB 10.3 .然后按照从MariaDB升级,从10.3升级到10.4.10.3到MariaDB 10.4 .

There is no guide for directly upgrading from version 10.2 to 10.4, so you should first upgrade from 10.2 to 10.3 by following Upgrading from MariaDB 10.2 to MariaDB 10.3. Then upgrade from 10.3 to 10.4 by following Upgrading from MariaDB 10.3 to MariaDB 10.4.

请务必阅读主要版本之间的不兼容性

Make sure to read the incompatibilities between the major versions

更多推荐

如何从SQL转储文件升级mariadb?

本文发布于:2023-10-27 22:48:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1534772.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SQL   储文   mariadb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!