Created
August 29, 2013 19:21
-
-
Save saikiranmothe/6382317 to your computer and use it in GitHub Desktop.
POSTGRESQL INSTALLATION ON UBUNTU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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