%mysql_secure_installation
Change the root password? [Y/n] Y
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
- rootパスワードを設定する
- rootによるリモートのホストからのログインを禁止する
- 匿名ユーザを削除する
- どのユーザでも自由にアクセスできるtestデータベースを削除する