Thread:Project:Support desk/Mediawiki DB connection error while attempting to upgrade

I have a mediawiki installation on a shared host server. It's at version 1.19.1 and I'm trying to update to 1.22.2. The documentation indicates that a one-step update should be OK for this.

Details: MediaWiki 1.19.1  PHP 5.3.28 (cgi-fcgi)   MySQL 5.5.32-percona-sure1-log URL: http://www.informationtamers.com/WikIT/

I've done updates in the past successfully several times, and am following my previous notes. I set up a new directory (WikITnew) with 1.22.2 in it, copied LocalSettings.php and contents of /images/ directory from the working live directory to the new one. LocalSettings.php has entries for $wgDBuser, $wgDBpassword, $wgDBadminuser and $wgDBadminpassword all defined.

I have command line access to the server, and tried to run the update process in WikITnew, by cd WikITnew php maintenance/update.php but it responds: DB connection error: Unknown MySQL server host 'localhost:/tmp/mysql5.sock' (34) (localhost:/tmp/mysql5.sock)

If I do the same in /WikiIT it works. Of course it does not do any actual update as I'm updating 1.19.1 to 1.19.1, but the usual type of messages appear, with indications that changes are not required, and it purges caches. WikIT remains operational.

So the same data for the connection string exists in both copies of LocalSettings.php, both copies of maintenance/update.php are accessing the same MySQL database, but one accepts the connection string and the other doesn't.

Has something changed between 1.19 and 1.22? I've looked for 'Configuration changes' in the release notes for 1.20, 1.21, and 1.22, but see no instruction to make any change.

Thanks if you can spot my, no doubt dumb, error.