Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) requires a database connection
Error: Confirm you have created the file : app/Config/database.php.
Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp.
#0 /home/math2me/public_html/lib/Cake/Model/Datasource/DboSource.php(244): Mysql->connect() #1 /home/math2me/public_html/lib/Cake/Model/ConnectionManager.php(98): DboSource->__construct(Array) #2 /home/math2me/public_html/lib/Cake/Model/Model.php(3212): ConnectionManager::getDataSource('default') #3 /home/math2me/public_html/lib/Cake/Model/Model.php(1023): Model->setDataSource('default') #4 /home/math2me/public_html/lib/Cake/Model/Model.php(3236): Model->setSource('videos') #5 /home/math2me/public_html/lib/Cake/Model/Model.php(2458): Model->getDataSource() #6 /home/math2me/public_html/app/Controller/PlaylistController.php(202): Model->find('first', Array) #7 [internal function]: PlaylistController->video('estadistica', 'grafica-de-barr...') #8 /home/math2me/public_html/lib/Cake/Controller/Controller.php(473): ReflectionMethod->invokeArgs(Object(PlaylistController), Array) #9 /home/math2me/public_html/lib/Cake/Routing/Dispatcher.php(107): Controller->invokeAction(Object(CakeRequest)) #10 /home/math2me/public_html/lib/Cake/Routing/Dispatcher.php(89): Dispatcher->_invoke(Object(PlaylistController), Object(CakeRequest), Object(CakeResponse)) #11 /home/math2me/public_html/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) #12 {main}