Skip to content

Instantly share code, notes, and snippets.

@Flushot
Created May 6, 2021 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Flushot/108a937081a267ab24476051e2376222 to your computer and use it in GitHub Desktop.
Save Flushot/108a937081a267ab24476051e2376222 to your computer and use it in GitHub Desktop.
Postgresql: Create user and database
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