How to upgrade mariadb from a sql dump file?

一世执手 提交于 2021-01-29 11:58:25

问题


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

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

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?


回答1:


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.

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



来源:https://stackoverflow.com/questions/58405954/how-to-upgrade-mariadb-from-a-sql-dump-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!