After installing the BitNami WAPP package 5.4.13 on my 64-bit Windows 7 laptop, and creating the database for the application I'm developing and restoring the data from another system, I added a new role and granted CTc to that role on my database, so that user postgres and the new user both have CTc.
Prior to restarting, PostgreSQL was working fine. I could access with psql, phppgadmin, or pgadmin. My pg_hba.conf was:
host all all 127.0.0.1/32 md5
In order to ensure certain changes were in effect, I stopped and restarted the BitNami WAPP package from the Start Menu (Start->All Programs->BitNami WAPP Stack -> BitNami WAPP Stack Service -> Start / Stop BitNami WAPP Stack Service.
After doing that, this messed up my user authentication. Postgres began rejecting connection to the user postgres saying: "could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? FATAL: password authentication failed for user "postgres" "
The only way I can get it to work now is to change my pg_hba.conf to:
host all all 127.0.0.1/32 trust
Then everything will work... HOWEVER I want to understand this fully. What did I inadvertently do? What changed and how do I fix this so that I can utilize the password or md5 method?