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(242): kod_db_mysqlDB->runsql('select * from w...') #1 /var/www/html/include/article.php(33): kod_db_mysqlSingle->getList(Array) #2 /var/www/html/include/article.php(18): articleHandle->getList(Array) #3 /var/www/html/http/index.php(18): articleHandle->getHotTop(0, 10) #4 /var/www/html/kod/db/memcache.php(74): index->{closure}() #5 /var/www/html/http/index.php(29): kod_db_memcache::returnCacheOrSave('page:index', Object(Closure), 0, 60) #6 [internal function]: index->main(0) #7 /var/www/html/kod/web/httpObject.php(51): ReflectionMethod->invokeArgs(Object(index), Array) #8 /var/www/html/http/index.php(43): kod_web_httpObject->run() #9 /var/www/html/index.php(21): include_once('/var/www/html/h...') #10 {main} thrown in /var/www/html/kod/db/mysqlDB.php on line 32