# mysql_secure_installation
...中略...
Enter current password for root (enter for none):[Enter]
OK, successfully used password, moving on...
...中略...
Set root password? [Y/n][Enter]
New password:passwd1
Re-enter new password:passwd1
Password updated successfully!
...中略...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
アクセスを確認する
以下のコマンドでアクセスを確認します。
「Welcome to the MariaDB monitor.」と表示され、バージョン番号が確認できれば成功です。
# mysql -u root -p
Enter password:passwd1
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 5.5.52-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.