Install Postgres 14
1. Fix repository in the mirror list
2. Actualisation of packages
3. Apply again step 1 to put back the fix.
4. Add the PostgreSQL 14 repository
5. The default built-in PostgreSQL module might lead to unwanted conflicts, so make sure it is disabled.
6. Install and init database
7. Check packages version upon successful installation
8. Initialize DB
9. Start and enable database service
10. Check status
Set password for Postgres user and login
1. Switch to postgres user account
2. Access psql shell
3. Set a password for a Postgres user. By default is in Newired installer password newired.
4. Logout from the shell
Allow connection from localhost to database over password
1. Edit file /var/lib/pgsql/14.1/data/pg_hba.conf and change:
To:
2. Edit file /var/lib/pgsql/14.1/data/postgresql.conf. Locate password_encryption variable and set it to md5.:
3.Restart service
4.Test connection superuser (postgres) over password
Troubleshooting:
In case of failed installation of Portal
Try first change encryption to md5 in pg_hba.conf and then change password
Or
Apply md5 encryption to all rows in pg_hba.conf
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article