Skip to content

Instantly share code, notes, and snippets.

@saikiranmothe
Created August 29, 2013 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saikiranmothe/6382317 to your computer and use it in GitHub Desktop.
Save saikiranmothe/6382317 to your computer and use it in GitHub Desktop.
POSTGRESQL INSTALLATION ON UBUNTU
PostgreSQL
# Install the database packages
sudo apt-get install -y postgresql-9.1 libpq-dev
# Login to PostgreSQL
sudo -u postgres psql -d template1
# Create a user for GitLab. (change $password to a real password)
template1=# CREATE USER git WITH PASSWORD '$password';
# Create the GitLab production database & grant all privileges on database
template1=# CREATE DATABASE gitlabhq_production OWNER git;
# Quit the database session
template1=# \q
# Try connecting to the new database with the new user
sudo -u git -H psql -d gitlabhq_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment