On Sun, Nov 29, 2020 at 5:24 AM MI mi.lists@alma.ch wrote:
I upgraded a Debian 9 "Stretch" server to Debian 10 "Buster", which also upgrades Mediawiki to version 1.31.
Trying to run update.php, it fails with "Cannot access the database: No database connection":
It sounds like you have a MySQL (or Postgres) problem.
There can be a few causes of MySQL problems. An upgrade can overwrite mysql.conf. The directory permissions are not correct for MySQL (especially logging).
I think you should first ensure MySQL is started and running. https://duckduckgo.com/?q=troubleshot+mysql+start+problem.
Jeff