Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Last active October 8, 2020 06:41
Show Gist options
  • Save aamsur-mkt/0cf4465076a78a3aa837499873792186 to your computer and use it in GitHub Desktop.
Save aamsur-mkt/0cf4465076a78a3aa837499873792186 to your computer and use it in GitHub Desktop.
Create user psql
$ sudo -u postgres psql
postgres=# create user myuser with encrypted password 'myfuser';
postgres=# grant all privileges on database yourfdatabasename to myfuser;
postgres=# GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO myfuser;
postgres=# alter default privileges in schema public
grant SELECT, INSERT, UPDATE, DELETE on tables to liman;
@aamsur-mkt
Copy link
Author

GRANT USAGE ON SCHEMA public TO dimas1 ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment