FATAL: configuration file postgresql.conf contains errors

480 Views Asked by At

I used postgresql almost a year on my local. Yesterday I used it and after I update the windows. Today I can not connect to the postgresql. It gives the below error:

connection to server at "localhost" (::1), port 5432 failed: Connection refused (0x0000274D/10061) Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused (0x0000274D/10061) Is the server running on that host and accepting TCP/IP connections?

After that I tried restart/start postgresql from services and it gives another error:

The postgresql-x64-13 service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

When I check the event viewer I saw this error:

2023-11-17 10:56:01.911 +03 [20256] FATAL:  configuration file "C:/Program Files/PostgreSQL/13/data/postgresql.conf" contains errors

I did not change any config, how can I fix this issue? I also share the properties:

enter image description here

Config file: C:\Program Files\PostgreSQL\13\data\postgresql.conf WeTransfer link of config file: (I can not share the link) enter image description here

0

There are 0 best solutions below