Last active
November 15, 2017 23:11
-
-
Save michaelstephens/bacf19caa21e66c64ae6 to your computer and use it in GitHub Desktop.
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
adduser [PSQL USER] | |
sudo -u postgres -i | |
psql | |
# OR | |
psql postgres | |
CREATE USER [PSQL USER] WITH PASSWORD '[PASSWORD]'; | |
CREATE DATABASE [PSQL DB]; | |
GRANT ALL PRIVILEGES ON DATABASE [PSQL DB] to [PSQL USER]; | |
\q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment