TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
/home/clients/moeb/moeb/www/framework/Data/TDbConnection.php (180)
0169: $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0170: $this->getPassword(),$this->_attributes);
0171: // This attribute is only useful for PDO::MySql driver.
0172: // Ignore the warning if a driver doesn't understand this.
0173: @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0174: $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0175: $this->_active=true;
0176: $this->setConnectionCharset();
0177: }
0178: catch(PDOException $e)
0179: {
0180: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0181: }
0182: }
0183: }
0184:
0185: /**
0186: * Closes the currently active DB connection.
0187: * It does nothing if the connection is already closed.
0188: */
0189: protected function close()
0190: {
0191: $this->_pdo=null;
0192: $this->_active=false;
#0 /home/clients/moeb/moeb/www/framework/Data/TDbConnection.php(153): TDbConnection->open()
#1 /home/clients/moeb/moeb/www/framework/TComponent.php(135): TDbConnection->setActive(true)
#2 /home/clients/moeb/moeb/www/index.php(28): TComponent->__set('Active', true)
#3 [internal function]: hackUTF8(Object(TApplication), NULL)
#4 /home/clients/moeb/moeb/www/framework/TComponent.php(358): call_user_func('hackUTF8', Object(TApplication), NULL)
#5 /home/clients/moeb/moeb/www/framework/TApplication.php(1022): TComponent->raiseEvent('OnBeginRequest', Object(TApplication), NULL)
#6 /home/clients/moeb/moeb/www/framework/TApplication.php(382): TApplication->onBeginRequest()
#7 /home/clients/moeb/moeb/www/index.php(24): TApplication->run()
#8 {main}