mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 13:55:03 +00:00
Update cheatsheets
This commit is contained in:
21
createdb
Normal file
21
createdb
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user