feat: adjust doc/postgres-create-db.md
This commit is contained in:
parent
cabf42079a
commit
54415cfb26
|
@ -1,8 +1,8 @@
|
||||||
# Create Database with Postgres
|
# Create Database with Postgres
|
||||||
|
|
||||||
* create a new database <database name> and grant privileges to <user name>
|
* create a new database `database name` and grant privileges to `user name`
|
||||||
```
|
```
|
||||||
sudo -u postgres psql -W
|
sudo -u postgres psql
|
||||||
CREATE DATABASE <database name>;
|
CREATE DATABASE <database name>;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE <database name> to <user name>;
|
GRANT ALL PRIVILEGES ON DATABASE <database name> to <user name>;
|
||||||
\q
|
\q
|
||||||
|
|
Loading…
Reference in New Issue