Created
September 25, 2018 04:42
-
-
Save sanjaykrishnan/355f4786d374745dd73b4c0cfabcedd7 to your computer and use it in GitHub Desktop.
Common postgres commands
This file contains hidden or 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
sudo -su postgres | |
psql | |
create database wynvent; | |
CREATE USER myuser WITH PASSWORD 'password'; | |
GRANT ALL PRIVILEGES ON DATABASE "wynvent" to myuser; | |
ALTER USER myuser WITH SUPERUSER; | |
#quit psql shell | |
\q | |
#list all databases | |
\l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment