Quote:
Originally Posted by Dread Wings
Couldn't get it working. Changed the database name, the screen name, and copied psql.exe and all dll files to the folder. The window that shows hands etc doesn't appear.
It keep writing files with this
Code:
\f '\t'
SELECT pokerhand_id FROM playerhandscashkeycolumns ORDER BY pokerhand_id DESC LIMIT 1;
\q
in my stoploss folder.
Oops, I forgot to mention an important step, only required if you've never set up postgresql to allow "no password" access yet... this is required for any database-accessing scripts at this time, and is not a big security problem unless you don't trust your own computer.
The script is getting denied, since it does not know your postgresql password.
You must set the postgresql authentication mode for localhost (127.0.0.1) to "trust".
Do this:
Click: "Start -> Programs -> PostgreSQL 8.x -> Configuration files -> Edit pg_hba.conf"
It will open a notepad with some text.
Scroll all the way to the bottom, you should see a line reading this:
Code:
#IPv4 local connections:
host all all 127.0.0.1/32 md5
Edit the "md5" to "trust", no quotes. It should now read:
Code:
#IPv4 local connections:
host all all 127.0.0.1/32 trust
Save the pg_hba.conf file, and close notepad.
Click: "Start -> Programs -> PostgreSQL 8.x -> Reload configuration"
Now try script again, it should now work with any luck