DB_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -24 [message] => DB Error: connect failed [userinfo] => [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] ** mysql://drewry_db_user:nap2epUjaCR4xabAsPAM@localhost/drewry_web_db [backtrace] => Array ( [0] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/PEAR/DB.php [line] => 748 [function] => PEAR_Error [class] => PEAR_Error [object] => DB_Error Object *RECURSION* [type] => -> [args] => Array ( [0] => DB Error: connect failed [1] => -24 [2] => 1 [3] => 1024 [4] => [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] ) ) [1] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/PEAR/PEAR.php [line] => 532 [function] => DB_Error [class] => DB_Error [object] => DB_Error Object *RECURSION* [type] => -> [args] => Array ( [0] => -24 [1] => 1 [2] => 1024 [3] => [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] ) ) [2] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/PEAR/DB/common.php [line] => 495 [function] => raiseError [class] => PEAR [object] => DB_mysql Object ( [connection] => [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => drewry_db_user [password] => nap2epUjaCR4xabAsPAM [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => drewry_web_db ) ) [type] => -> [args] => Array ( [0] => [1] => -24 [2] => [3] => [4] => [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] [5] => DB_Error [6] => 1 ) ) [3] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/PEAR/DB/mysql.php [line] => 142 [function] => raiseError [class] => DB_common [object] => DB_mysql Object ( [connection] => [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => drewry_db_user [password] => nap2epUjaCR4xabAsPAM [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => drewry_web_db ) ) [type] => -> [args] => Array ( [0] => -24 [1] => [2] => [3] => [4] => Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ) ) [4] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/PEAR/DB.php [line] => 393 [function] => connect [class] => DB_mysql [object] => DB_mysql Object ( [connection] => [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => drewry_db_user [password] => nap2epUjaCR4xabAsPAM [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => drewry_web_db ) ) [type] => -> [args] => Array ( [0] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => drewry_db_user [password] => nap2epUjaCR4xabAsPAM [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => drewry_web_db ) [1] => ) ) [5] => Array ( [file] => /var/www/vhosts/drewry.co.uk/library/classes/System/DB.class.php [line] => 42 [function] => connect [class] => DB [type] => :: [args] => Array ( [0] => mysql://drewry_db_user:nap2epUjaCR4xabAsPAM@localhost/drewry_web_db [1] => Array ( ) ) ) [6] => Array ( [file] => /var/www/vhosts/drewrysupplychains.com/httpdocs/config.inc.php [line] => 49 [function] => connectDatabase [class] => System_DB [type] => :: [args] => Array ( ) ) [7] => Array ( [file] => /var/www/vhosts/drewrysupplychains.com/httpdocs/news.php [line] => 4 [args] => Array ( [0] => /var/www/vhosts/drewrysupplychains.com/httpdocs/config.inc.php ) [function] => include_once ) ) [callback] => )
Fatal error: Uncaught exception 'System_Exception_SQLError' with message 'DB Error: connect failed []' in /var/www/vhosts/drewry.co.uk/library/classes/System/DB.class.php:48 Stack trace: #0 /var/www/vhosts/drewrysupplychains.com/httpdocs/config.inc.php(49): System_DB::connectDatabase() #1 /var/www/vhosts/drewrysupplychains.com/httpdocs/news.php(4): include_once('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/drewry.co.uk/library/classes/System/DB.class.php on line 48