postgresql - unable to connect to server for Postgres -


i have problem connect server postgres after updated windows.before update there no problem open database. database in postgres gone. when want create new database show error:

unable connect server: not connect server: connection refused (0x0000274d/10061) server running on host "localhost" (::1) , accepting tcp/ip connections on port 5432? not connect server: connection refused (0x0000274d/10061) server running on host "localhost" (127.0.0.1) , accepting tcp/ip connections on port 5432?

there 2 items configure if server isn't on localhost:

  • find postgresql.conf , add server's public ip address end of setting listen_addresses (separate multiple entries commas); uncomment line if commented out (e.g. '#')
  • add line pg_hba.conf containing client's ip address - may copy line containing 127.0.0.1 , change ip address

on ubuntu, these files in /etc/postgresql/<version>/main/.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -