Metis Logo

Leveraging ICT for Growth, Employment and Governance Project

FTFL Training Program Online Registration


Sign in to continue

CakePHP: the rapid development php framework: Errors/

Database connection "SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111" is missing, or could not be created.

Error: An Internal Error Has Occurred.

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 260Mysql->connect()
  • CORE/Cake/Model/ConnectionManager.php line 101DboSource->__construct(array)
  • CORE/Cake/Model/Model.php line 3158ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1092Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3180Model->setSource(string)
  • CORE/Cake/Model/Model.php line 2631Model->getDataSource()
  • APP/Controller/AppController.php line 201Model->find(string, array)
  • APP/Controller/UsersController.php line 43AppController->getCurrentBatchName()
  • [internal function]UsersController->login()
  • CORE/Cake/Controller/Controller.php line 485ReflectionMethod->invokeArgs(UsersController, array)
  • CORE/Cake/Routing/Dispatcher.php line 186Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 161Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 92Dispatcher->dispatch(CakeRequest, CakeResponse)