Skip to content

Instantly share code, notes, and snippets.

@kapillamba4
Last active June 5, 2018 10:39
Show Gist options
  • Save kapillamba4/8ddabce45202a451771a61229e65024a to your computer and use it in GitHub Desktop.
Save kapillamba4/8ddabce45202a451771a61229e65024a to your computer and use it in GitHub Desktop.
sudo pacman -S postgresql
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
sudo systemctl start postgresql.service
sudo -u postgres -i
createuser --interactive
root
y
createdb myDatabaseName
psql -d myDatabaseName
postgres://root:root@localhost:5432/pin_me_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment