Rails でアプリケーションの初期化はこんな感じになると思います。 % rails new hoge -d mysql % cd hoge % mysql -uroot -p mysql> create user hoge@localhost identified by 'abcdefg'; mysql> grant all on hoge_development.* to hoge@localhost; mysql> grant all on hoge_test.* to hoge@localhost; % vi config/database.yml development: 〜 username: hoge password: abcdefg 〜 test: 〜 username: hoge password: abcdefg % rake db:createで、rake db:c