インストール - MariaDB(Raspberry Pi)

提供: MochiuWiki : SUSE, EC, PCB

📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

概要



MariaDBのインストール

以下のコマンドを入力して実行する。

sudo apt-get install mariadb-client mariadb-server


インストールしたMariaDB Serverのバージョンを確認する。

dpkg -l | grep -i mariadb 



設定

MariaDBの設定を行うため、mysql_secure_installationを実行して設定を行う。
mysql_secure_installationを実行する。

sudo mysql_secure_installation

以下、説明を読みながら設定する
Enter current password for root (enter for none):   ← Enterキーを押下
Change the root password? [Y/n] y                   ←  yキーを押下
Remove anonymous users? [Y/n] y                     ←  yキーを押下
Disallow root login remotely? [Y/n] y               ←  yキーを押下
Remove test database and access to it? [Y/n] y      ←  yキーを押下
Reload privilege tables now? [Y/n] y                ←  yキーを押下
Thanks for using MySQL