标签:redmine
环境:
Ubuntu 13.10
bitnami-redmine-2.5.1-1-linux-x64-installer.run
用bitnami安装完redmine以后,有是否忘记了用户名和密码。但是又没有配置邮件服务器,无法找回密码。
只能去服务器更改了。更改步骤如下:
1. 修改 安装目录/redmin/apps/redmine/htdocs/config/database.yml,更对对应的用户名,密码,数据库地址,端口号
production: adapter: mysql2 database: bitnami_redmine host: 127.0.0.1 username: root password: "" port: 3307 encoding: utf8 socket: /home/hyadmin/redmin/mysql/tmp/mysql.sock development: adapter: mysql2 database: redmine_development host: localhost username: root password: "" encoding: utf8 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql2 database: redmine_test host: localhost username: root password: "" encoding: utf82. 进入如下目录
cd 安装目录/redmin/apps/redmine/htdocs/script
3. 执行如下命令,进入ruby
./rails console production
4. 取得你要修改的用户对象(ruby>代表进入ruby环境)
ruby> admin_user = User.find_by_login(‘你要改的用户名‘)
5.修改admin用户对象密码
ruby> admin_user.password = ‘你的密码‘
注: 这个密码不能太短,否则报错。
6.保存admin用户对象信息
ruby> admin_user.save!
7.退出ruby环境
ruby> quit
这样应该就可以用yourpassword这个新密码登录系统了
redmine忘记用户名和密码,布布扣,bubuko.com
标签:redmine
原文地址:http://blog.csdn.net/robinsonmhj/article/details/36876929