diff --git a/Software/Postgresql.md b/Software/Postgresql.md index 2ffdf68..2cc61e5 100644 --- a/Software/Postgresql.md +++ b/Software/Postgresql.md @@ -32,6 +32,21 @@ sudo dnf install postgresql-server sudo /usr/bin/postgresql-setup --initdb ``` +Edit database access config +```sh +sudo nano /var/lib/pgsql/data/pg_hba.conf +``` + +Find these lines: +```sh +# IPv4 local connections: +host all all 127.0.0.1/32 ident +# IPv6 local connections: +host all all ::1/128 ident +``` + +Make sure the last item on each line (in this case `ident`) is changed to `md5`. Then restarted the database `sudo systemctl restart postgresql.service` + ## Setup First make sure postgres is running: ```sh