1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 15:22:08 +02:00
tldr/pages/common/createdb.md
2022-03-09 22:59:58 +00:00

16 lines
435 B
Markdown

# 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}}`