Thread:Project:Support desk/even with correct database credential I get "Sorry! This site is experiencing technical difficulties"/reply

Hi!

Your site displays this error:

Can't contact the database server: Unknown database 'mdcons' (localhost))

Backtrace:
 * 1) 0 /var/wwws/BioTools/mdcons/includes/db/LoadBalancer.php(726): DatabaseBase->reportConnectionError('Unknown error (...')
 * 2) 1 /var/wwws/BioTools/mdcons/includes/db/LoadBalancer.php(492): LoadBalancer->reportConnectionError
 * 3) 2 /var/wwws/BioTools/mdcons/includes/GlobalFunctions.php(3499): LoadBalancer->getConnection(-2, Array, false)
 * 4) 3 /var/wwws/BioTools/mdcons/includes/objectcache/SqlBagOStuff.php(139): wfGetDB(-2)
 * 5) 4 /var/wwws/BioTools/mdcons/includes/objectcache/SqlBagOStuff.php(225): SqlBagOStuff->getDB(0)
 * 6) 5 /var/wwws/BioTools/mdcons/includes/objectcache/SqlBagOStuff.php(200): SqlBagOStuff->getMulti(Array)
 * 7) 6 /var/wwws/BioTools/mdcons/includes/cache/MessageCache.php(315): SqlBagOStuff->get('mdcons:messages...')
 * 8) 7 /var/wwws/BioTools/mdcons/includes/cache/MessageCache.php(710): MessageCache->load('en')
 * 9) 8 /var/wwws/BioTools/mdcons/includes/cache/MessageCache.php(650): MessageCache->getMsgFromNamespace('Mainpage', 'en')
 * 10) 9 /var/wwws/BioTools/mdcons/includes/Message.php(720): MessageCache->get('mainpage', true, Object(Language))
 * 11) 10 /var/wwws/BioTools/mdcons/includes/Message.php(464): Message->fetchMessage
 * 12) 11 /var/wwws/BioTools/mdcons/includes/Message.php(553): Message->toString
 * 13) 12 /var/wwws/BioTools/mdcons/includes/Title.php(370): Message->text
 * 14) 13 /var/wwws/BioTools/mdcons/includes/Wiki.php(89): Title::newMainPage
 * 15) 14 /var/wwws/BioTools/mdcons/includes/Wiki.php(130): MediaWiki->parseTitle
 * 16) 15 /var/wwws/BioTools/mdcons/includes/Wiki.php(538): MediaWiki->getTitle
 * 17) 16 /var/wwws/BioTools/mdcons/includes/Wiki.php(458): MediaWiki->main
 * 18) 17 /var/wwws/BioTools/mdcons/index.php(62): MediaWiki->run
 * 19) 18 {main}

Please make sure that the database name you provided in LocalSettings.php ("mdcons") is correct. And make sure that this DB is fine: The MySQL user, which you provided in LocalSettings.php, should be able to access it!