Difference between revisions of "Initdb"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
https://www.postgresql.org/docs/current/app-initdb.html
 +
 
  https://www.postgresql.org/docs/current/locale.html
 
  https://www.postgresql.org/docs/current/locale.html
  
Line 6: Line 8:
 
  initdb [[--locale]]=C -E [[UTF-8 /]]Users/user/brew/var/postgresql@16
 
  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 ==
 
  [[locale]]
 
  [[locale]]
  [[brew install postgresql@15]]
+
  [[brew install postgresql@16]]
 +
[[brew services start postgresql@16]]
  
 
== See also ==
 
== See also ==

Latest revision as of 17:39, 8 January 2024

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: