
・MariaDB10.3からMariaDB11.8へデータ移行する方法を知りたい。 こういった疑問に答えます。 この記事を書いている私は、某SIerに勤務しながら、本記事の内容

WEB系エンジニア・インフラエンジニアに憧れて、プログラミングおよびインフラ技術の勉強をしています。
こういった私が、解説していきます。
私が実機で試したコマンドや画像を載せて書いています。
記事の信頼性担保に繋がると思います。
MariaDB10.3からMariaDB11.8へデータ移行する手順
移行元(MariaDB10.3)からエクスポート
[satonaka@sv-neptune ~]$ mysqldump --user=root --password=★★★パスワード testdbdb > testdbdb.sql
移行先(MariaDB11.8)へインポート
[satonaka@a-maria01 ~]$ mysql --user=root --password=★★★パスワード mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3 Server version: 11.8.3-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
データベース作成
MariaDB [(none)]> create database testdbdb; Query OK, 1 row affected (0.000 sec)
インポート
[satonaka@a-maria01 ~]$ mysql --user=root --password=★★★パスワード --database=testdbdb < testdbdb.sql mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead