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

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)

Same erros occured, when I tried to update from version 1.19 to 1.20.3. My MediaWiki is running on my local Macbook using XAMPP. After asking google for this error, I found this thread. Since the error message is not very informative, the source of the problem is hard to find. So I want to share my solution:

In my case, the problem was the mysql command line tool. If I tried to connect via terminal, I got an error message, that mysql can't connect through the socket "/tmp/mysql.sock". << mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

So I looked for the MySQL configuration file "my.conf" inside the directory "XAMPP/etc". Client and server socket was configured as "XAMPP/xamppfiles/var/mysql/mysql.sock". After changing this to "/tmp/mysql.sock", the mysql command line tool works fine and lo and behold, also the "update.php" of the MediaWiki runs successfully to the end.

Perhaps, this helps other user, who'll find this thread like me. Best regards. Andi