MySQLの設定

mysql_secure_installationコマンドを実行します。
このコマンドでrootパスワード設定anonyousユーザーの削除リモートからのrootログイン禁止testデータベースの削除を行うことができます。

mysql_secure_installation
Enter current password for root (enter for none):何も入力せずにEnter Set root password? [Y/n]何も入力せずにEnter(ここからrootのパスワードを設定します。) New password:rootパスワードを入力してEnter Re-enter new password:rootパスワードを再度入力してEnter Remove anonymous users? [Y/n]何も入力せずにEnter(anonymousユーザーを削除) Disallow root login remotely? [Y/n]何も入力せずにEnter(rootのリモートログイン禁止) Remove test database and access to it? [Y/n]何も入力せずにEnter(testデータベースを削除) Reload privilege tables now? [Y/n]何も入力せずにEnter(変更を反映する)

コメント

タイトルとURLをコピーしました