note 115817 added to function.pg-connect
| From: | Anonymous | Date: | Mon, 29 Sep 2014 07:50:10 +0000 |
| Subject: | note 115817 added to function.pg-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200542@lists.php.net to get a copy of this message | ||
Getting md5 passwords was confusing because of a lack of documentation:
- set up your pg_hba.conf in order to use md5 password instead of 'trust' or
'ident'
- check if your postgres.conf has 'password_encryption=on' (depending on the version this
might already be 'on').
- make sure to restart your postgres process.
- in PHP you just supply the username and password in _plain_ text:
'host=localhost port=5432 dbname=megadb user=megauser
password=holyhandbagsbatmanthispasswordisinplaintext'
The postgres PHP library will automagically do the md5 encoding for you, no need to do it yourself.
----
Server IP: 72.52.91.14
Probable Submitter: 124.39.122.119
----
Manual Page -- http://php.net/manual/en/function.pg-connect.php
Edit -- https://master.php.net/note/edit/115817
Del: integrated -- https://master.php.net/note/delete/115817/integrated
Del: useless -- https://master.php.net/note/delete/115817/useless
Del: bad code -- https://master.php.net/note/delete/115817/bad+code
Del: spam -- https://master.php.net/note/delete/115817/spam
Del: non-english -- https://master.php.net/note/delete/115817/non-english
Del: in docs -- https://master.php.net/note/delete/115817/in+docs
Del: other reasons-- https://master.php.net/note/delete/115817
Reject -- https://master.php.net/note/reject/115817
Search -- https://master.php.net/manage/user-notes.php