MariaDB の準備
インストール作業は終わっているものとします。
(参考) Install MariaDB on Raspberry Pi OS
データベースの作成
pi@raspberrypi:~ $ mysql -u root -p
Enter password:
<snip>
MariaDB [(none)]> CREATE DATABASE metabase DEFAULT CHARACTER SET utf8;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> CREATE USER metabase IDENTIFIED BY 'metabase';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> GRANT ALL ON *.* TO 'metabase'@'localhost' IDENTIFIED BY 'metabase';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> quit;
Bye
pi@raspberrypi:~ $
Metabase の設定
完了です!