MediaWiki internal error.

Original exception: [446ff8bc] /wiki/index.php?title=Special:Upload&wpDestFile=Portal.svg Exception from line 159 of /home/exampleproblems.com/html/wiki/includes/specials/SpecialUpload.php:
Backtrace:
#0 /home/exampleproblems.com/html/wiki/includes/specialpage/SpecialPage.php(379): SpecialUpload->execute(NULL)
#1 /home/exampleproblems.com/html/wiki/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#2 /home/exampleproblems.com/html/wiki/includes/Wiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#3 /home/exampleproblems.com/html/wiki/includes/Wiki.php(588): MediaWiki->performRequest()
#4 /home/exampleproblems.com/html/wiki/includes/Wiki.php(447): MediaWiki->main()
#5 /home/exampleproblems.com/html/wiki/index.php(46): MediaWiki->run()
#6 {main}

Exception caught inside exception handler: [2eefb5f8] /wiki/index.php?title=Special:Upload&wpDestFile=Portal.svg Exception from line 967 of /home/exampleproblems.com/html/wiki/includes/db/Database.php: DB connection error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (localhost)
Backtrace:
#0 /home/exampleproblems.com/html/wiki/includes/db/LoadBalancer.php(754): DatabaseBase->reportConnectionError(string)
#1 /home/exampleproblems.com/html/wiki/includes/db/LoadBalancer.php(477): LoadBalancer->reportConnectionError()
#2 /home/exampleproblems.com/html/wiki/includes/GlobalFunctions.php(3653): LoadBalancer->getConnection(integer, array, boolean)
#3 /home/exampleproblems.com/html/wiki/includes/cache/LinkBatch.php(190): wfGetDB(integer)
#4 /home/exampleproblems.com/html/wiki/includes/cache/LinkBatch.php(133): LinkBatch->doQuery()
#5 /home/exampleproblems.com/html/wiki/includes/cache/LinkBatch.php(121): LinkBatch->executeInto(LinkCache)
#6 /home/exampleproblems.com/html/wiki/includes/Skin.php(303): LinkBatch->execute()
#7 /home/exampleproblems.com/html/wiki/includes/Skin.php(218): Skin->preloadExistence()
#8 /home/exampleproblems.com/html/wiki/skins/Vector.php(48): Skin->initPage(OutputPage)
#9 /home/exampleproblems.com/html/wiki/includes/SkinTemplate.php(258): SkinVector->initPage(OutputPage)
#10 /home/exampleproblems.com/html/wiki/includes/OutputPage.php(2083): SkinTemplate->outputPage()
#11 /home/exampleproblems.com/html/wiki/includes/exception/PermissionsError.php(56): OutputPage->output()
#12 /home/exampleproblems.com/html/wiki/includes/exception/MWExceptionHandler.php(44): PermissionsError->report()
#13 /home/exampleproblems.com/html/wiki/includes/exception/MWExceptionHandler.php(139): MWExceptionHandler::report(PermissionsError)
#14 /home/exampleproblems.com/html/wiki/includes/Wiki.php(454): MWExceptionHandler::handle(PermissionsError)
#15 /home/exampleproblems.com/html/wiki/index.php(46): MediaWiki->run()
#16 {main}