2025-03-14 21:59:59 -06:00
|
|
|
# initdb
|
|
|
|
|
|
|
|
|
|
> Create a PostgreSQL database on disk.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://www.postgresql.org/docs/current/app-initdb.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a database at `/usr/local/var/postgres`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`initdb {{[-D|--pgdata]}} /usr/local/var/postgres`
|