Created
May 6, 2021 06:29
-
-
Save Flushot/108a937081a267ab24476051e2376222 to your computer and use it in GitHub Desktop.
Postgresql: Create user and database
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
create user USERNAME with encrypted password 'PASSWORD'; | |
create database DB with owner = USERNAME; | |
grant all privileges on database DB to USERNAME; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment