diff --git a/doc/settings/database.md b/doc/settings/database.md index 993147d9345ab673d99cba771a96eb04a8b5ce38_ZG9jL3NldHRpbmdzL2RhdGFiYXNlLm1k..7f29bdcdc1e80f68ffcc72fe6705c3fa763ee63e_ZG9jL3NldHRpbmdzL2RhdGFiYXNlLm1k 100644 --- a/doc/settings/database.md +++ b/doc/settings/database.md @@ -145,4 +145,6 @@ To determine whether SSL is being used by clients, you can run: +In GitLab 14.2 and later: + ```shell @@ -148,5 +150,11 @@ ```shell -gitlab-rails dbconsole +sudo gitlab-rails dbconsole --database main +``` + +In GitLab 14.1 and earlier: + +```shell +sudo gitlab-rails dbconsole ``` At startup, you should see a banner as the following: @@ -603,6 +611,14 @@ default Omnibus GitLab database configuration, you can connect as the application user: +In GitLab 14.2 and later: + +```shell +sudo gitlab-rails dbconsole --database main +``` + +In GitLab 14.1 and earlier: + ```shell sudo gitlab-rails dbconsole ```