how to reset redmine database?
Added by James R over 11 years ago
Hello,
this has probably been asked before but after searching the forum I cannot seem to find the answer...
Is there a rake command to simply wipe my database to get back to an empty instance of redmine.
I imagined it would be something simple like rake redmine:reset .... but this does not seem to work.
Grateful for any solutions offered.
Replies (4)
RE: how to reset redmine database? - Added by James R over 11 years ago
ok so I just did rake db:reset
that cleaned out the old junk fine.... but now I can no longer login.
I am using a bitnami stack.
admin:admin - does not work
asami morita - does not work
user:bitnami - does not work
bitnami:bitnami - does not work
Any ideas??
RE: how to reset redmine database? - Added by Anonymous over 10 years ago
I realise this is an old post.. I assume you've either figured it out, or given up and reinstalled. But for future reference, you should run the db:migrate
task directly after a reset.
These two steps will clear the current DB, then reload the core structure of the redmine app, using the included schema.rb
file. :)
[edit] Ok hang on, maybe not... I've got the same behaviour here now, admin/admin
isn't working. My 'admin' user has a status of '1' and a type of 'Admin'.
RE: how to reset redmine database? - Added by Martin Denizet (redmine.org team member) over 10 years ago
You can reset the admin password with something like:
ruby script/runner 'puts User.find(:first, :conditions => {:admin => true}).mail' -e production
RE: how to reset redmine database? - Added by John Pankowicz about 10 years ago
rake redmine:load_default_datastore
will restore the administrator account.