gitlab默認管理員
來源:魅力女性吧 3.21W
使用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 // 注意,分號不要忘了