もしも、MySQLの初期設定を行っていない場合は、 スタートメニューの「すべてのプログラム」=>「MySQL」=>「MySQL Server 5.1」=>「MySQL Server Instance Config Wizard」 で最低限の設定を施しておこう。
1.スタートメニューの「すべてのプログラム」=>「MySQL」=>「MySQL Server 5.1」=>「MySQL Command Line Client」 を起動する。 2.あらかじめ設定したrootのパスワードでログインする。 3.データベースを作るために、”create database <データベース名> character set utf8;”と打って、[Enter]キーを押す。 例:create database mt_database character set utf8; 結果例:Query OK, 1 row affected (0.05 sec) 4.データベース用のユーザを作るために”grant select,insert,delete,update,create,drop,file,alter,index on <データベース名>.* to <ユーザ名> identified by '<パスワード>';”と打って、[Enter]キーを押す。 例:grant select,insert,delete,update,create,drop,file,alter,index on mt_database.* to mt_user identified by 'mt_password'; 結果例:flush privileges; ※MovableTypeのホームページでは、ユーザを作る際に、”grant all on <データベース名>.* to <ユーザ名> identified by '<パスワード>';”とするように指定されている。 心配な方は、そちらで! 5.”exit”コマンドで終了する。