database configuration does not specify adapter
Added by Marcello Lussana almost 12 years ago
hi
i'm installing redmine 2.2 on a debian squeeze.
When I try to generate the db structure with:
/var/lib/gems/1.9.1/gems/rake-10.0.3/bin/rake db:migrate
I get:
database configuration does not specify adapter
even though the adapter is configured as mysql2
i've also tried mysql but got the same problem
i'm following this tutorial
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_210_on_Debian_Squeeze_with_Apache_Passenger
what should I try?
Best
Replies (4)
RE: database configuration does not specify adapter - Added by Jan Niggemann (redmine.org team member) almost 12 years ago
Please post your database.yml with user and PW obfuscated.
RE: database configuration does not specify adapter - Added by Marcello Lussana almost 12 years ago
here:
production:
adapter: mysql2
database: redmine
host: localhost
username: *
password: *
encoding: utf8
RE: database configuration does not specify adapter - Added by Jan Niggemann (redmine.org team member) almost 12 years ago
Look OK, did you specify RAILS_ENV?/var/lib/gems/1.9.1/gems/rake-10.0.3/bin/rake db:migrate RAILS_ENV=production
RE: database configuration does not specify adapter - Added by Marcello Lussana almost 12 years ago
I'm sure I did and it was not working... anyway now it works :P
Thanks!