[Rails] Re: rake aborted!
this is my database.yml content:
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
encoding: utf8
reconnect: false
database: cms_development
pool: 5
user: smtabatabaie
password: 'mypassword'
host: localhost
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql
encoding: utf8
reconnect: false
database: cms_test
pool: 5
user: smtabatabaie
password: 'mypassword'
host: localhost
production:
adapter: mysql
encoding: utf8
reconnect: false
database: cms_production
pool: 5
user: smtabatabaie
password: 'mypassword'
host: localhost
--------------------------------------------------------------------------
I enter mysql using commands : mysql -u smtabatabaie -p
and then : show databases
and cms_development is there
On Jul 17, 12:41 am, Colin Law <clan...@googlemail.com> wrote:
> On 16 July 2011 08:44, smtabatabaie <tabatabaie.mojt...@gmail.com> wrote:
>
> > hi , I have started to learn ruby on rails and I'm an absolute
> > beginner . when I try to rake a database like "rake db:schema:dump " I
> > get this message :
> > "rake aborted !
> > unknown database 'cms_development' "
> > although I have modified my database.yml and have created my database
> > before.
> > I'll be appreciated if someone can help me with this
> > thanks
>
> Can you post database.yml and tell us exactly what command(s) you use
> to show that a database of that name does exist.
>
> Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home