mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
createdb: add page (#7851)
This commit is contained in:
parent
cbfe325cb1
commit
bb0e145843
1 changed files with 16 additions and 0 deletions
16
pages/common/createdb.md
Normal file
16
pages/common/createdb.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# createdb
|
||||
|
||||
> Create a PostgreSQL database.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-createdb.html>.
|
||||
|
||||
- Create a database owned by the current user:
|
||||
|
||||
`createdb {{database_name}}`
|
||||
|
||||
- Create a database owned by a specific user with a description:
|
||||
|
||||
`createdb --owner={{username}} {{database_name}} '{{description}}'`
|
||||
|
||||
- Create a database from a template:
|
||||
|
||||
`createdb --template={{template_name}} {{database_name}}`
|
Loading…
Add table
Reference in a new issue