Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/kod/db/mysqlDB.php on line 19

Fatal error: Uncaught exception 'Exception' with message '无法连接到数据库:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)' in /var/www/html/kod/db/mysqlDB.php:32 Stack trace: #0 /var/www/html/kod/db/mysqlSingle.php(69): kod_db_mysqlDB->runsql('select * from w...') #1 /var/www/html/include/article.php(24): kod_db_mysqlSingle->getByKey('662', '*') #2 /var/www/html/http/detail.php(12): articleHandle->getByKey('662') #3 [internal function]: index->main('11', '662') #4 /var/www/html/kod/web/httpObject.php(51): ReflectionMethod->invokeArgs(Object(index), Array) #5 /var/www/html/http/detail.php(19): kod_web_httpObject->run() #6 {main} thrown in /var/www/html/kod/db/mysqlDB.php on line 32