« PostgreSQL » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 16 : Ligne 16 :
# initialize the database cluster
# initialize the database cluster
initdb -D /var/lib/postgres/data
initdb -D /var/lib/postgres/data
# $LANG (en_US.UTF-8) is used to deduce the locale and the encoding
# or can be defined manually: --locale=en_US.UTF-8 -E UTF8
</kode>
</kode>

Version du 4 avril 2021 à 17:24

Links

Installation

Bash.svg
# will install postgresql-libs, postgresql and create a system user called postgres
sudo pacman -S postgresql

Initial configuration

Bash.svg
# switch to the PostgreSQL user
sudo -iu postgres

# initialize the database cluster
initdb -D /var/lib/postgres/data
# $LANG (en_US.UTF-8) is used to deduce the locale and the encoding
# or can be defined manually: --locale=en_US.UTF-8 -E UTF8