Missing Database Connection

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.

Stack Trace

#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('homes')
#5 /home/math2me/public_html/lib/Cake/Model/Model.php(2458): Model->getDataSource()
#6 /home/math2me/public_html/app/Controller/HomeController.php(17): Model->find('first')
#7 /home/math2me/public_html/lib/Cake/Controller/Controller.php(605): HomeController->beforeFilter()
#8 /home/math2me/public_html/lib/Cake/Routing/Dispatcher.php(104): Controller->startupProcess()
#9 /home/math2me/public_html/lib/Cake/Routing/Dispatcher.php(89): Dispatcher->_invoke(Object(HomeController), Object(CakeRequest), Object(CakeResponse))
#10 /home/math2me/public_html/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}