PDOException Object ( [message:protected] => SQLSTATE[HY000] [2002] Connection refused [string:Exception:private] => [code:protected] => 2002 [file:protected] => /var/www/html/modules/db.php [line:protected] => 12 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/modules/db.php [line] => 12 [function] => __construct [class] => PDO [type] => -> ) [1] => Array ( [file] => /var/www/html/modules/db.php [line] => 31 [function] => get_connection [class] => DB [type] => :: ) [2] => Array ( [file] => /var/www/html/modules/db.php [line] => 69 [function] => execute [class] => DB [type] => :: ) [3] => Array ( [file] => /var/www/html/models/GalleryPost.php [line] => 41 [function] => query_one [class] => DB [type] => :: ) [4] => Array ( [file] => /var/www/html/views/home.php [line] => 23 [function] => get_random [class] => GalleryPost [type] => :: ) [5] => Array ( [file] => /var/www/html/modules/page_builder.php [line] => 14 [args] => Array ( [0] => /var/www/html/views/home.php ) [function] => require ) [6] => Array ( [file] => /var/www/html/index.php [line] => 64 [function] => PageBuilder\load_page ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => HY000 [1] => 2002 [2] => Connection refused ) )