If you don't remember the admin email address, another option is to use the userid .
get your admin user id.
mysql -u redmine_user -p # login MySQL
mysql> use redmine; # choose redmine database
mysql> select id,login from users where login='admin'; # show admin info
Now you have your admin id (first column) it should be 1 but can be any number if you have delete and recreated your admin user.
Go to the redmine folder and change the password
su - redmine_user # go under redmine user if you have one
cd /var/www/redmine # cd in redmine document root
# start the console
RAILS_ENV=production bundle exec rails c
Wait until rail env come up.
# Load your admin user, I use id = 1 here but it should be what you have found in step 1
user = User.where(id: 1).first
# set new password
user.password = 'password'
user.password_confirmation = 'password'
# save changes
user.save!
exit
Your done !
Bye
rails c
. You can loadRAILS_ENV=production rails c
then something like this:u = User.where(email: '[email protected]').first; u.password = '123123'; u.password_confirmation = '123123'; u.save!
– Falstaffian