DibiDriverException #2013

Lost connection to MySQL server at 'reading initial communication packet', system error: 110

Source file

File: /srv/www/vhosts/flora/public_html/pexeso/libs/dibi/drivers/mysql.php   Line: 110

Line 103:                    $this->connection = @mysql_connect($host$config['username'], $config['password'], TRUE$config['flags']); // intentionally @
Line 104:                } else {
Line 105:                    $this->connection = @mysql_pconnect($host$config['username'], $config['password'], $config['flags']); // intentionally @
Line 106:                }
Line 107:            }
Line 108:    
Line 109:            if (!is_resource($this->connection)) {
Line 110:                throw new DibiDriverException(mysql_error(), mysql_errno());
Line 111:            }
Line 112:    
Line 113:            if (isset($config['charset'])) {
Line 114:                $ok FALSE;
Line 115:                if (function_exists('mysql_set_charset')) {
Line 116:                    // affects the character set used by mysql_real_escape_string() (was added in MySQL 5.0.7 and PHP 5.2.3)
Line 117:                    $ok = @mysql_set_charset($config['charset'], $this->connection); // intentionally @

Call stack

  1. libs/DibiConnection.php (163) source   DibiMySqlDriver-> connect (arguments )

  2. libs/DibiConnection.php (137) source   DibiConnection-> connect ()

  3. dibi/dibi.php (139) source   DibiConnection-> __construct (arguments )

  4. app/bootstrap.php (31) source   dibi:: connect (arguments )

  5. www/index.php (13) source   require (arguments )

Environment

HTTP request

HTTP response