TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2006] MySQL server has gone away
/framework_3_1_9/Data/TDbConnection.php (192)
0181: $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0182: $this->getPassword(),$this->_attributes);
0183: // This attribute is only useful for PDO::MySql driver.
0184: // Ignore the warning if a driver doesn't understand this.
0185: @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0186: $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0187: $this->_active=true;
0188: $this->setConnectionCharset();
0189: }
0190: catch(PDOException $e)
0191: {
0192: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0193: }
0194: }
0195: }
0196:
0197: /**
0198: * Closes the currently active DB connection.
0199: * It does nothing if the connection is already closed.
0200: */
0201: protected function close()
0202: {
0203: $this->_pdo=null;
0204: $this->_active=false;
#0 /framework_3_1_9/Data/TDbConnection.php(165): TDbConnection->open()
#1 /framework_3_1_9/Data/ActiveRecord/TActiveRecord.php(317): TDbConnection->setActive(true)
#2 /framework_3_1_9/Data/ActiveRecord/TActiveRecord.php(329): TActiveRecord::getActiveDbConnection()
#3 /framework_3_1_9/Data/ActiveRecord/TActiveRecordGateway.php(136): TActiveRecord->getDbConnection()
#4 /framework_3_1_9/Data/ActiveRecord/TActiveRecord.php(848): TActiveRecordGateway->getCommand(Object(LangRecord))
#5 /protected/utils/Utilities.php(409): TActiveRecord->__call('findbyname', Array)
#6 /protected/utils/Utilities.php(409): LangRecord->findbyname('PL')
#7 /protected/utils/Utilities.php(421): Utilities->getLang()
#8 /protected/Pages/bakterie/Item.php(7): Utilities->getCulture()
#9 /framework_3_1_9/Web/Services/TPageService.php(480): Item->__construct()
#10 /framework_3_1_9/Web/Services/TPageService.php(443): TPageService->createPage('bakterie.Item')
#11 /framework_3_1_9/TApplication.php(1095): TPageService->run()
#12 /framework_3_1_9/TApplication.php(382): TApplication->runService()
#13 /index.php(40): TApplication->run()
#14 {main}