Thread:Project:Support desk/old mysql database resulting in Cannot contact the database server/reply (3)

A server error 500 actually does not look better than the MediaWiki error message (Cannot contact the database server), but worse.

For database access, of the variables you posted, only $wgDBname is relevant. The others do not matter.

Important for DB access are $wgDBserver, $wgDBname, $wgDBpassword and $wgDBuser. See the according manual pages here on mediawiki.org for more informaton on those variables and their correct values! Note that these values depend on the MySQL server. So if you are using another server, the servername, the databasename, the DB username and the password will most likely be different from what you used before.

After double-checking/fixing these variables, what do you get?