Project

General

Profile

Trying to reset database but lost admin login

Added by John Pankowicz over 9 years ago

I installed Redmine locally to practice configuring it. After a while, I ran

bundle exec rake db:reset db:migrate RAILS_ENV=production

to reset the database and start over. Now if I try to login, Redmine no longer has the default root user (user = admin, password = admin). Should I have used some other way to clear the database that would have left me a Redmine admin user? How do I now add an admin user to Redmine? I can access the MySql database by using the console.

There were two other questions in the past in this forum (RE: how to reset redmine database? & Trying to restart from scratch) asking the same thing. But the suggested solutions do not work.


Replies (1)

RE: Trying to reset database but lost admin login - Added by John Pankowicz over 9 years ago

I think I found the answer to my own question. I should have also done: "rake redmine:load_default_data". However, this did not work until I first deleted the database, recreated it and ran "rake db:migrate" first.

    (1-1/1)