mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 23:55:45 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
21
tldr/createdb
Normal file
21
tldr/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