I have the following code that connects to the database on my remote server (the script connection is on the same server):
Database::$ErrorHandle = new PDO('pgsql:host=111.222.33.44;dbname=mydatabase;', 'postgres', 'mypassword', $db_settings);
The problem is that I can change the password to be something at all, and the connection is still done! How seriously, what the hell!?!
Can my database be connected (if you know the IP name and db) by someone from a PHP script running on another server?
How can I apply passwords, I looked at the next page and did what they said, but still no luck: How to change the password of a PostgreSQL user?
I am running Ubuntu 12.04 server with PHP 5.5 and Apache2
postgresql
Kevin orriss
source share