Project

General

Profile

rake can't access to MySQL production database

Added by James Gastovski almost 10 years ago

I'm struggling to make redmine receiving emails using rake task. Once I'm trying to execute the task redmine:email:receive_imap an error occurs saying:

"rake aborted! Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)"

I founded out that rake is trying to connect to developer database instead of production. Does anyone know how to switch rake to 'production'?


Replies (1)

RE: rake can't access to MySQL production database - Added by Toshi MARUYAMA almost 10 years ago

You need to define RAILS_ENV environment variable.

    (1-1/1)