Skip to content

Instantly share code, notes, and snippets.

@andreydjason
Last active August 29, 2015 14:07
Show Gist options
  • Save andreydjason/e75587d07a874486d4ea to your computer and use it in GitHub Desktop.
Save andreydjason/e75587d07a874486d4ea to your computer and use it in GitHub Desktop.
Common Commands
sudo -u postgres psql
ALTER USER Postgres WITH PASSWORD 'NEW PWD';
psql -h hostname -d databasename -U username -f file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment