Error

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")

#0 /home/directar/public_html/lib/framework/Singleton/Singleton.php(11): Bd_Connection->initialize()
#1 /home/directar/public_html/lib/framework/Singleton/Singleton.php(20): Singleton->__construct()
#2 /home/directar/public_html/lib/framework/Bd/Bd.php(13): Singleton::getInstance()
#3 /home/directar/public_html/lib/framework/Bd/Bd_Object.php(241): Bd::returnSingle('SELECT * FROM P...')
#4 /home/directar/public_html/lib/model/Navigation/Navigation_Controller.php(102): Bd_Object::readFirst(Array)
#5 /home/directar/public_html/index.php(26): Navigation_Controller->controlActions()
#6 {main}