sudo apt-get install mariadb-server 初期設定 初期状態だと、UNIX_SOCKET Authentication Pluginの影響でUNIXのrootユーザーからSocket接続しないとrootログインできなくなっていて非常に面倒なので解除する。 sudo mysql -u root use mysql; update user set plugin='' where User='root'; flush privileges; このままだと誰でもrootログインできてしまうのでパスワード設定とセキュリティ設定。 sudo mysql_secure_installation Enter current password for root (enter for none): //現在のrootパスワードを入力。初期状態では空なのでそのままEnter Se
![Raspberry Pi(Raspbian Stretch)にMariaDBインストール](https://cdn-ak-scissors.b.st-hatena.com/image/square/06195fdb2a1133648b8b9edc7588f5b2263c9484/height=288;version=1;width=512/https%3A%2F%2Fayame.space%2Fwp-content%2Fuploads%2F2017%2F05%2F4eae4f1f8ca809a577afbde5c7cd3e06.png)