Steps to replicate the issue (include links if applicable):
- install oathauth on mediawiki 1.42
- run Web update script ( /w/mw-config ) to update the database
What happens?:
Error saying cannot access database virtual (use virtual statement)
home/xx/xx/x/wiki/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php... An error occurred: Error 1044: Access denied for user '12345_wiki'@'%' to database 'virtual' Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain Query: USE `virtual`
What should have happened instead?:
Virtual database names should work properly.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.42
Other information (browser name/version, screenshots, etc.):
Reports:
- https://www.mediawiki.org/wiki/Topic:Y9kjsgdks184jvrr
- https://www.mediawiki.org/wiki/Topic:Yakailc03f0u43c0
- https://discord.com/channels/178359708581625856/1271809738782412860/1271809738782412860
- https://discord.com/channels/178359708581625856/1262410778271809578/1262410778271809578
No idea what is going on here. Almost certainly related to T348484, but how i do not know. I cannot reproduce, but this is quickly becoming one of the most common bug-type issue reported issues on support channels (i think there has been about 5 reports over the last 2 weeks). One of the person reported their LocalSettings.php and nothing seemed out of the ordinary, they did not have any weird db config or anything.