Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
d0ce8636
Commit
d0ce8636
authored
1 year ago
by
Alvin Gounder
Browse files
Options
Downloads
Patches
Plain Diff
Make the connect to Database section more generic
parent
a6357c94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!101
Omnibus Gitlab 16.2 branching point
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/settings/database.md
+23
-24
23 additions, 24 deletions
doc/settings/database.md
with
23 additions
and
24 deletions
doc/settings/database.md
+
23
−
24
View file @
d0ce8636
...
@@ -717,30 +717,6 @@
...
@@ -717,30 +717,6 @@
gitlab_rails
[
'databases'
][
'ci'
][
'enable'
]
=
false
gitlab_rails
[
'databases'
][
'ci'
][
'enable'
]
=
false
```
```
### Connecting to the bundled PostgreSQL database
If you need to connect to the bundled PostgreSQL database and are using the
default Omnibus GitLab database configuration, you can connect as the
application user:
In
[
GitLab 14.2 and later
](
https://gitlab.com/gitlab-org/gitlab/-/issues/341210
)
:
```
shell
sudo
gitlab-rails dbconsole
--database
main
```
In GitLab 14.1 and earlier:
```
shell
sudo
gitlab-rails dbconsole
```
or as a PostgreSQL superuser:
```
shell
sudo
gitlab-psql
-d
gitlabhq_production
```
## Using a non-packaged PostgreSQL database management server
## Using a non-packaged PostgreSQL database management server
By default, GitLab is configured to use the PostgreSQL server that's included
By default, GitLab is configured to use the PostgreSQL server that's included
...
@@ -1393,3 +1369,26 @@
...
@@ -1393,3 +1369,26 @@
```
```
1. Navigate to `https://your_primary_server/admin/geo/nodes` and ensure that all nodes are healthy.
1. Navigate to `https://your_primary_server/admin/geo/nodes` and ensure that all nodes are healthy.
## Connecting to the PostgreSQL database
If you need to connect to the PostgreSQL database, you can connect as the
application user:
In [GitLab 14.2 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/341210):
```
shell
sudo gitlab-rails dbconsole --database main
```
In GitLab 14.1 and earlier:
```
shell
sudo gitlab-rails dbconsole
```
or as a PostgreSQL superuser:
```
shell
sudo gitlab-psql -d gitlabhq_production
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment