redmine忘记username和password
環境:
Ubuntu 13.10
bitnami-redmine-2.5.1-1-linux-x64-installer.run
用bitnami安裝完redmine以后,有是否忘記了username和password??墒怯譀]有配置郵件server,無法找回password。
僅僅能去server更改了。更改過程例如以下:
1. 改動 安裝文件夾/redmin/apps/redmine/htdocs/config/database.yml,更對相應的username,password,數據庫地址,port號
production:adapter: mysql2database: bitnami_redminehost: 127.0.0.1username: rootpassword: ""port: 3307encoding: utf8socket: /home/hyadmin/redmin/mysql/tmp/mysql.sock
development:adapter: mysql2database: redmine_developmenthost: localhostusername: rootpassword: ""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: mysql2database: redmine_testhost: localhostusername: rootpassword: ""encoding: utf8
2. 進入例如以下文件夾 cd 安裝文件夾/redmin/apps/redmine/htdocs/script
3. 運行例如以下命令,進入ruby
./rails console production
4. 取得你要改動的用戶對象(ruby>代表進入ruby環境)
? ?ruby> admin_user = User.find_by_login('你要改的username')
?
5.改動admin用戶對象password
? ruby>?admin_user.password = '你的密碼'
? 注: 這個password不能太短,否則報錯。
?
6.保存admin用戶對象信息
? ruby> admin_user.save!
?
7.退出ruby環境
? ruby> quit
?
這樣應該就能夠用yourpassword這個新密碼登錄系統了
轉載于:https://www.cnblogs.com/hrhguanli/p/4551533.html
總結
以上是生活随笔為你收集整理的redmine忘记username和password的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 妹子们喜欢被五十度灰吗?好奇之……?
- 下一篇: ck的衣服基本价位是多少?