MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred
Query: SELECT page_id,page_len,page_is_redirect FROM `page` WHERE page_namespace = '10' AND page_title = 'ArMarshal' LIMIT 1
Function: LinkCache::addLinkObj
Error: 2002 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)
' in /usr/share/mediawiki1.7/includes/db/Database.php:606
Stack trace:
#0 /usr/share/mediawiki1.7/includes/db/Database.php(561): Database->reportQueryError('Can't connect t...', 2002, 'SELECT page_id...', 'LinkCache::addL...', false)
#1 /usr/share/mediawiki1.7/includes/db/Database.php(969): Database->query('SELECT page_id...', 'LinkCache::addL...')
#2 /usr/share/mediawiki1.7/includes/db/Database.php(1045): Database->select('page', Array, Array, 'LinkCache::addL...', Array, Array)
#3 /usr/share/mediawiki1.7/includes/LinkCache.php(165): Database->selectRow('page', Array, Array, 'LinkCache::addL...', Array)
#4 /usr/share/mediawiki1.7/includes/Title.php(1895): LinkCache->addLinkObj(Object(Title))
#5 /usr/share/mediawiki1.7/includes/parser/Parser.php(3114): Title->getArticleID()
#6 [internal function]: Parser->statelessFetchTemplate(Object(Title), Object(Parser))
#7 /usr/share/mediawiki1.7/includes/parser/Parser.php(3065): call_user_func(Array, Object(Title), Object(Parser))
#8 /usr/share/mediawiki1.7/includes/parser/Parser.php(3042): Parser->fetchTemplateAndTitle(Object(Title))
#9 /usr/share/mediawiki1.7/includes/parser/Parser.php(2929): Parser->getTemplateDom(Object(Title))
#10 /usr/share/mediawiki1.7/includes/parser/Preprocessor_DOM.php(915): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#11 /usr/share/mediawiki1.7/includes/parser/Preprocessor_DOM.php(1239): PPFrame_DOM->expand(Object(DOMElement), 4)
#12 /usr/share/mediawiki1.7/includes/parser/Preprocessor_DOM.php(1247): PPTemplateFrame_DOM->getNamedArgument('offices')
#13 /usr/share/mediawiki1.7/includes/parser/Parser.php(3197): PPTemplateFrame_DOM->getArgument('offices')
#14 /usr/share/mediawiki1.7/includes/parser/Preprocessor_DOM.php(934): Parser->argSubstitution(Array, Object(PPTemplateFrame_DOM))
#15 /usr/share/mediawiki1.7/includes/parser/Parser.php(2982): PPFrame_DOM->expand(Object(PPNode_DOM))
#16 /usr/share/mediawiki1.7/includes/parser/Preprocessor_DOM.php(915): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#17 /usr/share/mediawiki1.7/includes/parser/Parser.php(2674): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#18 /usr/share/mediawiki1.7/includes/parser/Parser.php(962): Parser->replaceVariables('{{Populace?|pho...')
#19 /usr/share/mediawiki1.7/includes/parser/Parser.php(317): Parser->internalParse('{{Populace?|pho...')
#20 /usr/share/mediawiki1.7/includes/OutputPage.php(405): Parser->parse('{{Populace?|pho...', Object(Title), Object(ParserOptions), true, true, 17319)
#21 /usr/share/mediawiki1.7/includes/OutputPage.php(391): OutputPage->addWikiTextTitle('{{Populace?|pho...', Object(Title), true, true)
#22 /usr/share/mediawiki1.7/includes/OutputPage.php(500): OutputPage->addWikiTextTitleTidy('{{Populace?|pho...', Object(Title), true)
#23 /usr/share/mediawiki1.7/includes/DifferenceEngine.php(313): OutputPage->addWikiTextTidy('{{Populace?|pho...')
#24 /usr/share/mediawiki1.7/includes/DifferenceEngine.php(271): DifferenceEngine->renderNewRevision()
#25 /usr/share/mediawiki1.7/includes/Article.php(729): DifferenceEngine->showDiffPage(false)
#26 /usr/share/mediawiki1.7/includes/Wiki.php(437): Article->view()
#27 /usr/share/mediawiki1.7/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#28 /var/lib/mediawiki1.7/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#29 {main}

Exception caught inside exception handler: exception 'DBUnexpectedError' with message 'Error in fetchObject(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)' in /usr/share/mediawiki1.7/includes/db/Database.php:735
Stack trace:
#0 /usr/share/mediawiki1.7/includes/db/Database.php(2620): Database->fetchObject(false)
#1 /usr/share/mediawiki1.7/includes/LinkBatch.php(98): ResultWrapper->fetchObject()
#2 /usr/share/mediawiki1.7/includes/LinkBatch.php(78): LinkBatch->addResultToCache(Object(LinkCache), Object(ResultWrapper))
#3 /usr/share/mediawiki1.7/includes/LinkBatch.php(68): LinkBatch->executeInto(Object(LinkCache))
#4 /usr/share/mediawiki1.7/includes/Skin.php(208): LinkBatch->execute()
#5 /usr/share/mediawiki1.7/includes/Skin.php(184): Skin->preloadExistence()
#6 /usr/share/mediawiki1.7/includes/SkinTemplate.php(106): Skin->initPage(Object(OutputPage))
#7 /usr/share/mediawiki1.7/skins/MonoBook.php(24): SkinTemplate->initPage(Object(OutputPage))
#8 /usr/share/mediawiki1.7/includes/SkinTemplate.php(151): SkinMonoBook->initPage(Object(OutputPage))
#9 /usr/share/mediawiki1.7/includes/OutputPage.php(821): SkinTemplate->outputPage(Object(OutputPage))
#10 /usr/share/mediawiki1.7/includes/Exception.php(150): OutputPage->output()
#11 /usr/share/mediawiki1.7/includes/Exception.php(174): MWException->reportHTML()
#12 /usr/share/mediawiki1.7/includes/Exception.php(260): MWException->report()
#13 /usr/share/mediawiki1.7/includes/Exception.php(294): wfReportException(Object(DBQueryError))
#14 [internal function]: wfExceptionHandler(Object(DBQueryError))
#15 {main}