Skip to content

Instantly share code, notes, and snippets.

@TheBoroer
Last active June 23, 2024 04:51
Show Gist options
  • Save TheBoroer/5075799ab28b04f9d5fe3de0933465de to your computer and use it in GitHub Desktop.
Save TheBoroer/5075799ab28b04f9d5fe3de0933465de to your computer and use it in GitHub Desktop.
Postgres: create db, create user, add user to db
CREATE database database_name_here;
CREATE user username_here with encrypted password 'password_here';
GRANT ALL privileges on database database_name_here to username_here;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment