]> lifelog.hopto.org Git - LifeLog.git/commitdiff
upd.
authorWill Budic <redacted>
Wed, 19 Apr 2023 06:41:34 +0000 (16:41 +1000)
committerWill Budic <redacted>
Wed, 19 Apr 2023 06:41:34 +0000 (16:41 +1000)
Installation_PostgreSQL.txt

index 691b170e2c222aeac3eb6e0da3d2c0a5414f6325..108991e3ef7e50c3210e2152ff34b1a8c865c235 100644 (file)
@@ -42,6 +42,11 @@ sudo vim /etc/postgresql/12/main/postgresql.conf to modify--> listen_addresses =
 sudo vim pg_hba.conf ->
 host    all             all              0.0.0.0/0                       md5
 host    all             all              ::/0                            md5
+
+# New PG version: If want remote client access add in server /etc/postgresql/14/main/pg_hba.conf:
+host    all             all             {client-server-access-ip}/24      scram-sha-256
+
+
 sudo service postgresql restart
 
 ## Install required libpq-dev to compile test perl driver, later. 
@@ -57,6 +62,8 @@ sudo -u postgres psql -c "CREATE ROLE lifelog WITH LOGIN SUPERUSER CREATEDB CREA
 sudo -u postgres psql -c "CREATE DATABASE lifelog;"
 sudo -u postgres psql -c "grant all privileges on database lifelog to lifelog;"
 
+
+
 ## Start stop Postgres SQL
 sudo service postgresql start