This is what I did:
1. Create a new MySQL database 'blah_mw' and a user 'blah_user' with all possible privileges on the former.
2. Install MediaWiki, providing the following information to the installation script:
$wgDBtype = 'mysql'; $wgDBserver = 'localhost'; $wgDBname = 'blah_mw'; $wgDBuser = 'blah_user'; $wgDBpassword = 'mynicepassword';
as summed up in LocalSettings.php.
3. Go to http://mywiki.org/, where I obtain the error:
MediaWiki internal error. Original exception: [ZqEs3UQYlJ7QKxMlbf02vgAAAIA] / Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'blah_user'@'localhost' (using password: YES) (localhost) Backtrace: from /home/blah/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1138) #0 /home/v/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(794): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() #1 /home/blah/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(782): Wikimedia\Rdbms\LoadBalancer->getServerConnection() #2 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal() #3 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection() #4 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call() #5 /home/blah/public_html/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(747): Wikimedia\Rdbms\DBConnRef->selectField()
It seems that MediaWiki cannot connect to the database. However, when I open it with PHPmyadmin, I can see that the installation script has been able to edit it, so the problem is not related to the credentials I gave.
Does anybody have any clue what the problem can be related to?