访问GitLab的PostgreSQL数据库(转)
sh-4.1$ psql -h /var/opt/gitlab/postgresql -d gitlabhq_production 连接到gitlabhq_production库。gitlab-psql:x:493:490::/var/opt/gitlab/postgresql:/bin/sh //gitlab的postgresql用户。host: '/var/opt/gitlab/postgresql' //主机。gitlabhq_production-# \l //查看数据库。
转载
2023-06-23 20:33:32 ·
769 阅读 ·
2 评论