Skip to content
Snippets Groups Projects
Verified Commit 391db242 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Fix documentation to create the `pg_trm` extension before creating the DB


[ci skip]

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b3e1561f
No related branches found
No related tags found
No related merge requests found
Loading
@@ -175,17 +175,17 @@ We recommend using a PostgreSQL database. For MySQL check the
Loading
@@ -175,17 +175,17 @@ We recommend using a PostgreSQL database. For MySQL check the
```bash ```bash
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;" sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
``` ```
1. Create the GitLab production database and grant all privileges on database: 1. Create the `pg_trgm` extension (required for GitLab 8.6+):
   
```bash ```bash
sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;" sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
``` ```
   
1. Create the `pg_trgm` extension (required for GitLab 8.6+): 1. Create the GitLab production database and grant all privileges on database:
   
```bash ```bash
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;" sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;"
``` ```
   
1. Try connecting to the new database with the new user: 1. Try connecting to the new database with the new user:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment