initdb

From wikieduonline
Jump to navigation Jump to search

https://www.postgresql.org/docs/current/app-initdb.html
https://www.postgresql.org/docs/current/locale.html
initdb --locale=C -E UTF-8 /opt/homebrew/var/postgres
initdb --locale=C -E UTF-8 /Users/user/brew/var/postgresql@16


initdb --locale-provider=icu --icu-locale=en


initdb --locale=C -E UTF-8  ./
initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/Users/user/brew/Cellar/libpq/16.1_1/bin/initdb"

Related[edit]

locale
brew install postgresql@16
brew services start postgresql@16

See also[edit]

Advertising: