Or, you can try hijacking the object:

try{
      $db = new PDO("mysql:host='123.456.789.0:1234'; dbname='yourDatabase'...

 Look for the try catch block of your connection and hard code your database credentials.

~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com