Files
cheatsheet-tldr/tldr/initdb
2025-09-10 00:18:18 +00:00

14 lines
341 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# initdb
> Create a PostgreSQL database cluster on disk.
> More information: <https://www.postgresql.org/docs/current/app-initdb.html>.
- Create a database cluster at `/usr/local/var/postgres`:
`initdb {{[-D|--pgdata]}} /usr/local/var/postgres`