Warning: PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via tcp://mysqlproccess.db:3306) in /f2/daveroberts/public/happypuppy/lib/database/DBConnection.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at /f2/daveroberts/public/happypuppy/lib/database/DBConnection.php:55) in /f2/daveroberts/public/happypuppy/HappyPuppy.php on line 19
Exception in Application

Exception

SQLSTATE[HY000] [2002] Connection refused

/f2/daveroberts/public/happypuppy/lib/database/DBConnection.php

Line: 55
50             $klass "\\".$app."\DBConf";
51             require_once($_ENV["docroot"]."apps/".$app."/db/conf.php");
52             if (method_exists($klass"DB"))
53             {
54                 $dbsettings $klass::DB();
55                 $pdo = new \PDO("mysql:host=".$dbsettings["hostname"].";dbname=".$dbsettings["dbname"].""$dbsettings["dbusername"], $dbsettings["dbpassword"]);
56                 DBConnection::$DBs[$app] = $pdo;
57                 return $pdo;
58             }
59         }
60     }

Params - Show / Hide

function __construct($dsn,$username,$passwd,$options)
dsn
string(40) "mysql:host=mysqlproccess.db;dbname=hotel"
username
string(5) "hotel"
passwd
string(48) "3ujsHsqpgf2QtPvxvkLBTkgw2YnHmaBHftjGyfEjEdmDVaGH"

Full Trace