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/I18N/core/MessageSource_Database.php(55): TDbConnection->setActive(true)
#2 /framework_3_1_9/I18N/core/MessageSource_Database.php(129): MessageSource_Database->getDbConnection()
#3 /framework_3_1_9/I18N/core/MessageSource.php(181): MessageSource_Database->isValidSource('messages.en')
#4 /framework_3_1_9/I18N/core/MessageFormat.php(141): MessageSource->load('messages')
#5 /framework_3_1_9/I18N/core/MessageFormat.php(190): MessageFormat->loadCatalogue('messages')
#6 /framework_3_1_9/I18N/core/MessageFormat.php(168): MessageFormat->formatString('Edit entry', Array, 'messages')
#7 /framework_3_1_9/PradoBase.php(622): MessageFormat->format('Edit entry', Array, 'messages', 'utf-8')
#8 /framework_3_1_9/Web/UI/TTemplateManager.php(500): PradoBase::localize('Edit entry')
#9 /framework_3_1_9/Web/UI/TTemplateManager.php(427): TTemplate->configureProperty(Object(TButton), 'text', Array)
#10 /framework_3_1_9/Web/UI/TTemplateManager.php(353): TTemplate->configureControl(Object(TButton), 'text', Array)
#11 /framework_3_1_9/Web/UI/TTemplateControl.php(141): TTemplate->instantiateIn(Object(Item))
#12 /framework_3_1_9/Web/UI/TControl.php(918): TTemplateControl->createChildControls()
#13 /framework_3_1_9/Web/UI/TTemplateControl.php(225): TControl->ensureChildControls()
#14 /framework_3_1_9/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#15 /framework_3_1_9/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#16 /framework_3_1_9/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#17 /framework_3_1_9/Web/Services/TPageService.php(444): TPageService->runPage(Object(Item), Array)
#18 /framework_3_1_9/TApplication.php(1095): TPageService->run()
#19 /framework_3_1_9/TApplication.php(382): TApplication->runService()
#20 /index.php(40): TApplication->run()
#21 {main}