Reputation: 28188
I'm trying to use postgresql with Rails so I can run locally before deploying to Heroku. I installed the latest version of postgresql (9.2.4) from enterprisedb.com.
When I try to double click the database in pgAdmin III, it asks for a postgresql password. There is no Windows postgresql account in the user settings. I did notice that during my subsequent uninstallation of the application, the uninstaller referenced a service user account "NetworkService."
If I try to run the command line psql command, it asks for a password, then it complains that authentication failed for (my windows login account name). I tried entering my usual Windows account password, and that didn't work.
What's going wrong here? I've read many posts of people running into password/account issues with this database.
Upvotes: 2
Views: 10000
Reputation: 324455
There is no Windows postgresql account in the user settings.
The installer for 9.2 doesn't create a postgres
Windows user account. People were having too many problems with the service account password, getting confused between the service account and the postgres
database account, etc. It now installs and runs as NETWORKSERVICE
by default.
You will have set a PostgreSQL database password when you installed. You must log in to PostgreSQL as the postgres
user with the password you gave during installation.
Upvotes: 7
Reputation: 28188
With the help of bma, I was able to get my Rails application running on Windows by following these steps:
File
menu, click Open pg_hba.conf
C:\Program Files (x86)\PostgreSQL\9.2\data\pg_hba.conf
.md5
to trust
Upvotes: 3