Project

General

Profile

rake db:migrate_plugins - rake aborted! \ Access denied for user 'root'@'localhost' (using password: NO)

Added by Dan Cameron almost 16 years ago

For those receiving the error:

# rake db:migrate_plugins                      
(in /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs)
Migrating engines...
*rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)*

(See full trace by running task with --trace)

It's not because your db.yml is setup wrong or you need to give root access to your DB. you simply just need to set the environment:

ake db:migrate_plugins  RAILS_ENV=production

[note]
I'm thinking this may not be as obvious as the devs might think and could be added to the wiki.