feat: adjust doc/postgres-create-user.md
This commit is contained in:
parent
58a3565828
commit
671d011d88
|
@ -5,6 +5,11 @@
|
||||||
CREATE USER <user name> with encrypted password 'key';
|
CREATE USER <user name> with encrypted password 'key';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* create a `SUPERUSER` user called `user name` with password `key`
|
||||||
|
```
|
||||||
|
CREATE USER SUPERUSER <user name> with encrypted password 'key';
|
||||||
|
```
|
||||||
|
|
||||||
* OPTION: gant user `user name` access to database `database name`
|
* OPTION: gant user `user name` access to database `database name`
|
||||||
```
|
```
|
||||||
GRANT ALL PRIVILEGES ON DATABASE <database name> TO <user name>;
|
GRANT ALL PRIVILEGES ON DATABASE <database name> TO <user name>;
|
||||||
|
|
Loading…
Reference in New Issue