MYSQLのインストール
オフィシャルのサイトにしたがって、インストールしました。
初期設定
# sudo /usr/bin/mysql_secure_installation
このコマンドを実行すると、対話式に色々と聞かれます。
- Current Root Passwordを入力してください。
- A.何も入力せず、Enterを押してください。(デフォルトでrootのパスワードはないから)
- If the above step worked correctly you should be prompted with a question asking you if you would like to set your root password. Please press Y and press Enter.
- A.Yを押してmysql用のrootのパスワードを設定してください。
- You will be prompted to remove the MySQL anonymous users. For security reasons we want to do this.
- A.セキュリティ的によくないので、Yを入力してEnterを押してください
- Delete test Databaseを消しますか
- A.セキュリティ的によくないので、Yを入力してEnterを押してください
参考サイト
・オフィシャルwiki(mysqlインストール編)
http://cloudservers.rackspacecloud.com/index.php/CentOS_-_MySQL_Installation