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

exception 'Typecho_Db_Adapter_Exception' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Db/Adapter/Pdo.php:60 Stack trace: #0 /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Db.php(199): Typecho_Db_Adapter_Pdo->connect(Object(Typecho_Config)) #1 /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Db.php(350): Typecho_Db->selectDb(1) #2 /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1) #3 /home/ftp/o/ooibxvex/wwwroot/var/Widget/Options.php(358): Typecho_Db->fetchAll(Object(Typecho_Db_Query), Array) #4 /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Widget.php(221): Widget_Options->execute() #5 /home/ftp/o/ooibxvex/wwwroot/var/Widget/Init.php(27): Typecho_Widget::widget('Widget_Options') #6 /home/ftp/o/ooibxvex/wwwroot/var/Typecho/Widget.php(221): Widget_Init->execute() #7 /home/ftp/o/ooibxvex/wwwroot/index.php(17): Typecho_Widget::widget('Widget_Init') #8 {main}