docs: update postgres
This commit is contained in:
parent
76f5b7438a
commit
678b0e6caa
10
postgres.md
10
postgres.md
@ -2,14 +2,14 @@
|
|||||||
title: Postgres
|
title: Postgres
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2019-10-09T09:05:14.198Z
|
date: 2019-10-09T09:23:50.157Z
|
||||||
tags:
|
tags:
|
||||||
---
|
---
|
||||||
|
|
||||||
# Postgres
|
# Postgres
|
||||||
|
|
||||||
|
|
||||||
[Create new user](https://www.a2hosting.com/kb/developer-corner/postgresql/managing-postgresql-databases-and-users-from-the-command-line)
|
## [Create new user](https://www.a2hosting.com/kb/developer-corner/postgresql/managing-postgresql-databases-and-users-from-the-command-line)
|
||||||
|
|
||||||
* At the command line, type the following command as the server's root user:
|
* At the command line, type the following command as the server's root user:
|
||||||
`su - postgres`
|
`su - postgres`
|
||||||
@ -23,4 +23,8 @@ tags:
|
|||||||
* At the Shall the new role be a superuser? prompt, type y if you want to grant superuser access. Otherwise, type n.
|
* At the Shall the new role be a superuser? prompt, type y if you want to grant superuser access. Otherwise, type n.
|
||||||
* At the Shall the new role be allowed to create databases? prompt, type y if you want to allow the user to create new databases. Otherwise, type n.
|
* At the Shall the new role be allowed to create databases? prompt, type y if you want to allow the user to create new databases. Otherwise, type n.
|
||||||
* At the Shall the new role be allowed to create more new roles? prompt, type y if you want to allow the user to create new users. Otherwise, type n.
|
* At the Shall the new role be allowed to create more new roles? prompt, type y if you want to allow the user to create new users. Otherwise, type n.
|
||||||
* PostgreSQL creates the user with the settings you specified.
|
* PostgreSQL creates the user with the settings you specified.
|
||||||
|
|
||||||
|
## Create Db
|
||||||
|
|
||||||
|
`createdb -O $User $Db`
|
||||||
Loading…
x
Reference in New Issue
Block a user