docs: update postgres
This commit is contained in:
parent
76f5b7438a
commit
678b0e6caa
@ -2,14 +2,14 @@
|
||||
title: Postgres
|
||||
description:
|
||||
published: true
|
||||
date: 2019-10-09T09:05:14.198Z
|
||||
date: 2019-10-09T09:23:50.157Z
|
||||
tags:
|
||||
---
|
||||
|
||||
# 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:
|
||||
`su - postgres`
|
||||
@ -24,3 +24,7 @@ tags:
|
||||
* 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.
|
||||
* PostgreSQL creates the user with the settings you specified.
|
||||
|
||||
## Create Db
|
||||
|
||||
`createdb -O $User $Db`
|
||||
Loading…
x
Reference in New Issue
Block a user