Last active
November 2, 2018 20:47
-
-
Save tyriis/bc77709fbf9f0f77c72e238c7767dcbc to your computer and use it in GitHub Desktop.
Creating user, database and adding access on PostgreSQL
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
-- source: https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e | |
CREATE DATABASE yourdbname; | |
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass'; | |
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment