PDOException

Description

SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading authorization packet', system error: 0

Source File

/nfsmnt/hosting2_2/f/2/f2f32702-673e-4501-867c-5014a2c216c5/milanium.sk/web/core/db.php (31)

0029:         if (!isset(self::$instance[$iInstanceId])){
0030:             $DSN = config::$db_driver . ':host=' . config::$db_server . ';dbname=' . config::$db_name;
0031: self::$instance[$iInstanceId] = new PDO($DSN, config::$db_user, config::$db_pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_PERSISTENT => true));
0032: self::$instance[$iInstanceId]->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 0033: } 0034: return self::$instance[$iInstanceId];

Stack Trace

#0 /nfsmnt/hosting2_2/f/2/f2f32702-673e-4501-867c-5014a2c216c5/milanium.sk/web/core/db.php(31): PDO->__construct('mysql:host=loca...', 'milanium', 'sdfa234azce3r', Array)
#1 /nfsmnt/hosting2_2/f/2/f2f32702-673e-4501-867c-5014a2c216c5/milanium.sk/web/core/db_session.php(27): db::getInstance()
#2 [internal function]: db_session->read('18a5d318272a6bf...')
#3 /nfsmnt/hosting2_2/f/2/f2f32702-673e-4501-867c-5014a2c216c5/milanium.sk/web/www/index.php(15): session_start()
#4 {main}
2017-04-27 07:01