Thread:Project:Support desk/update.php prohibited/reply (12)

Error 1: MediaWiki 1.20.2 Updater DB connection error: No such file or directory (localhost)

Error 2: MediaWiki 1.20.2 Updater DB connection error: Connection refused (127.0.0.1)

As I had the same problem, and figured out a way to get it to work, I'll post the solution here, even though it's a dead thread: When setting up mediawiki, it automatically generates a LocalSettings.php file in the top most mediaWiki directory, where index.php is located. The automatic setup correctly added the port (8888) to the Apache address in this LocalSettings.php: $wgServer          = "http://localhost:8888";

But the port (8889) was not added to the database address: $wgDBserver        = "localhost";

For me it worked, when I just changed this line to: $wgDBserver        = "localhost:8889";

Localhost or 127.0.0.1 did not make a difference for me