Jump to content

Topic on Project:Support desk

Wikimedia\Rdbms\DBConnectionError - LoadBalancer.php: Cannot access the database: Unknown error ()

2
Mulch23 (talkcontribs)

I have upgraded my mediwiki from 1.24 to 1.35. but now my DB connection didn#t work.

When I do the online upgarde everythink looks ok.

=> Upgrade complete.

You can now start using your wiki.

And than: #0 /usr/www/users/tjifyn/wiki_1.35.14/includes/libs/rdbms/loadbalancer/LoadBalancer.php(937): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

and so on ...

I can connect with CLI to my DB:

tjifyn@dedi4039:~$ mysql -u i**** -p i*****

Enter password:

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 31790822

Server version: 10.5.23-MariaDB-0+deb11u1 Debian


my LocalSettings.php

$wgDBtype           = "mysql";

$wgDBserver         = "dedi4039.your-server.de";

$wgDBname           = "i**********";

$wgDBuser           = "i*********";

$wgDBpassword       = "a***********";

# $wgDBport           = "3306";

$wgDBprefix         = "";


thx 4 your help!

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Bawolff (talkcontribs)

Does it help if you change $wgDBserver to "localhost" ? Possibly it is the difference between tcp connection vs unix domain socket connection.

Reply to "Wikimedia\Rdbms\DBConnectionError - LoadBalancer.php: Cannot access the database: Unknown error ()"