Outils pour utilisateurs

Outils du site


pgsql-create-db-user:postgresql_create_database_user

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
pgsql-create-db-user:postgresql_create_database_user [2022/11/28 15:57]
ghusson
pgsql-create-db-user:postgresql_create_database_user [2023/05/23 10:56] (Version actuelle)
ghusson [Autoriser les connections authentifiées en local pour posgresql]
Ligne 11: Ligne 11:
  
 apt install postgresql apt install postgresql
-cp -a /​etc/​postgresql/​11/​main/​pg_hba.conf /​etc/​postgresql/​11/​main/​pg_hba.conf_ +cp -a /​etc/​postgresql/​13/​main/​pg_hba.conf /​etc/​postgresql/​13/​main/​pg_hba.conf_ 
-sed -i "​s/​local ​  ​all ​            ​all ​                                    ​peer/​local ​  ​all ​            ​all ​                                    scram-sha-256/g" /​etc/​postgresql/​11/​main/​pg_hba.conf+sed -i "​s/​local ​  ​all ​            ​all ​                                    ​peer/​local ​  ​all ​            ​all ​                                    md5/g" /​etc/​postgresql/​11/​main/​pg_hba.conf
 service postgresql stop service postgresql stop
 service postgresql start service postgresql start
pgsql-create-db-user/postgresql_create_database_user.txt · Dernière modification: 2023/05/23 10:56 par ghusson