feat: adjust postgres-create-user.md
This commit is contained in:
parent
586a16e0fd
commit
e434cb5e7a
|
@ -14,3 +14,7 @@
|
|||
* [Postges](../doc/postgres.md)
|
||||
* [Java](../doc/java.md)
|
||||
* [OneBusAway](../doc/onebusaway.md)
|
||||
|
||||
## To-do List
|
||||
|
||||
* Reuse
|
||||
|
|
|
@ -11,6 +11,18 @@ CREATE USER <user name> with encrypted password <key>;
|
|||
grant all privileges on database <database name> to <user name>;
|
||||
```
|
||||
|
||||
* OPTION: gant user <user_name> access to database ```postgres``` so that this user is able to login without providing a database
|
||||
```
|
||||
sudo -u postgres psql -W
|
||||
grant all privileges on database postgres to <user name>;
|
||||
```
|
||||
|
||||
* OPTION: gant user <user_name> permission to create databases
|
||||
```
|
||||
sudo -u postgres psql -W
|
||||
ALTER USER <user_name> CREATEDB;
|
||||
```
|
||||
|
||||
* edit the pg_hba.conf file\
|
||||
NOTE: Insert the postgresql database version that is running on the respective host
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue