Error happening when running "rake db:create RAILS_ENV='development' "
Posted
by Dean
on Stack Overflow
See other posts from Stack Overflow
or by Dean
Published on 2010-05-19T17:47:48Z
Indexed on
2010/05/19
17:50 UTC
Read the original article
Hit count: 474
ruby-on-rails
|rubygems
Hi, I am getting this error in my terminal when i execute the command above,
Deans-MacBook:depot dean$ rake db:create RAILS_ENV='development'
(in /Users/dean/src/RailsBook/depot) Couldn't create database for {"username"=>"root", "adapter"=>"mysql", "database"=>"depot_development", "host"=>"localhost", "password"=>nil}, charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, make sure you have a matching collation)
In database config file i have the following:
development:
adapter: mysql
database: depot_development
username: root
password:
host: localhost
I have the mysql gem installed and now i am unsure on what to do next. I am running snow leopard on a Macbook. Does anyone know why this error is happening?
Thanks in Advance
Dean
© Stack Overflow or respective owner