gitlab默認管理員
使用root 用戶登入gitlab服務器。
檢視數據庫配置資訊 cat /var/opt/gitlab/gitlab-rails/etc/
登入用戶 su - gitlab-psql
連接庫 psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
查詢用戶 select * from users where email = ‘普通用戶郵箱地址’ // 注意,分號不要忘了
更新爲管理員 update users set admin=‘t’ where id = 普通用戶ID // 注意,分號不要忘了