gitlab默认管理员

来源:魅力女性吧 3.21W
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 // 注意,分号不要忘了

热门标签