postgresql create user roles 1

postgresql create user roles

CREATE ROLE admin WITH CREATEDB CREATEROLE;

Here is what the above code is Doing:
1. Create a new database called ‘todo’
2. Create a new user called ‘admin’
3. Grant all privileges to the ‘admin’ user
4. Create a new role called ‘admin’

Similar Posts