MediaWiki internal error.

Original exception: exception 'DBConnectionError' with message 'DB connection error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)' in /etc/hsmwiki/includes/db/Database.php:746
Stack trace:
#0 /etc/hsmwiki/includes/db/DatabaseMysql.php(146): DatabaseBase->reportConnectionError(' Can't connect ...')
#1 /etc/hsmwiki/includes/db/DatabaseMysql.php(469): DatabaseMysql->open('localhost', 'wiki_hsm_user', 'h@xR4w1k1', 'wiki_hsm')
#2 /etc/hsmwiki/includes/db/Database.php(868): DatabaseMysql->ping()
#3 /etc/hsmwiki/includes/db/Database.php(1358): DatabaseBase->query('SELECT value,e...', 'SqlBagOStuff::g...')
#4 /etc/hsmwiki/includes/db/Database.php(1445): DatabaseBase->select('objectcache', Array, Array, 'SqlBagOStuff::g...', Array, Array)
#5 /etc/hsmwiki/includes/objectcache/SqlBagOStuff.php(124): DatabaseBase->selectRow('objectcache', Array, Array, 'SqlBagOStuff::g...')
#6 /etc/hsmwiki/includes/resourceloader/ResourceLoader.php(149): SqlBagOStuff->get('wiki_hsm:resour...')
#7 /etc/hsmwiki/includes/resourceloader/ResourceLoader.php(785): ResourceLoader->filter('minify-js', 'mw.loader.imple...')
#8 /etc/hsmwiki/includes/OutputPage.php(2599): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array)
#9 /etc/hsmwiki/includes/OutputPage.php(2688): OutputPage->makeResourceLoaderLink(Array, 'combined')
#10 /etc/hsmwiki/includes/OutputPage.php(2408): OutputPage->getHeadScripts()
#11 /etc/hsmwiki/includes/SkinTemplate.php(465): OutputPage->headElement(Object(SkinVector))
#12 /etc/hsmwiki/includes/OutputPage.php(1982): SkinTemplate->outputPage()
#13 /etc/hsmwiki/includes/Wiki.php(406): OutputPage->output()
#14 /etc/hsmwiki/includes/Wiki.php(594): MediaWiki->finalCleanup()
#15 /etc/hsmwiki/includes/Wiki.php(503): MediaWiki->main()
#16 /etc/hsmwiki/index.php(58): MediaWiki->run()
#17 {main}

Exception caught inside exception handler: exception 'DBConnectionError' with message 'DB connection error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)' in /etc/hsmwiki/includes/db/Database.php:746
Stack trace:
#0 /etc/hsmwiki/includes/db/DatabaseMysql.php(146): DatabaseBase->reportConnectionError(' Can't connect ...')
#1 /etc/hsmwiki/includes/db/DatabaseMysql.php(469): DatabaseMysql->open('localhost', 'wiki_hsm_user', 'h@xR4w1k1', 'wiki_hsm')
#2 /etc/hsmwiki/includes/db/Database.php(868): DatabaseMysql->ping()
#3 /etc/hsmwiki/includes/db/Database.php(1358): DatabaseBase->query('SELECT lc_valu...', 'LCStore_DB::get')
#4 /etc/hsmwiki/includes/db/Database.php(1445): DatabaseBase->select('l10n_cache', Array, Array, 'LCStore_DB::get', Array, Array)
#5 /etc/hsmwiki/includes/LocalisationCache.php(892): DatabaseBase->selectRow('l10n_cache', Array, Array, 'LCStore_DB::get')
#6 /etc/hsmwiki/includes/LocalisationCache.php(339): LCStore_DB->get('en', 'messages:dberr-...')
#7 /etc/hsmwiki/includes/LocalisationCache.php(240): LocalisationCache->loadSubitem('en', 'messages', 'dberr-problems')
#8 /etc/hsmwiki/languages/Language.php(1978): LocalisationCache->getSubitem('en', 'messages', 'dberr-problems')
#9 /etc/hsmwiki/includes/db/DatabaseError.php(104): Language->getMessage('dberr-problems')
#10 /etc/hsmwiki/includes/db/DatabaseError.php(133): DBConnectionError->msg('dberr-problems', 'Sorry! This sit...')
#11 /etc/hsmwiki/includes/Exception.php(190): DBConnectionError->getHTML()
#12 /etc/hsmwiki/includes/db/DatabaseError.php(185): MWException->reportHTML()
#13 /etc/hsmwiki/includes/Exception.php(209): DBConnectionError->reportHTML()
#14 /etc/hsmwiki/includes/Exception.php(490): MWException->report()
#15 /etc/hsmwiki/includes/Exception.php(569): MWExceptionHandler::report(Object(DBConnectionError))
#16 /etc/hsmwiki/includes/Wiki.php(506): MWExceptionHandler::handle(Object(DBConnectionError))
#17 /etc/hsmwiki/index.php(58): MediaWiki->run()
#18 {main}