1#Create User
2CREATE USER <CREATEDUSER> WITH PASSWORD '<PASSWORD>';
3
4#Grants Permission for database or table
5GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE <DATABASENAME> TO <CREATEDUSER>;
6
7#Revoke access from database or table
8REVOKE SELECT ON DATABASE <DATABASENAME> FROM <USER_OR_ROLE>;