From 05971d6e9e56b4e7409a7911e634a64664b6e5df Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 5 Apr 2006 08:50:27 +0000 Subject: [PATCH] Fix database user existence check: a username may be allowed to log in but not on the database we want, in which case we still have to add it. The grants are now per-database so they won't interfere. --- config/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index ee22797441..736538b486 100644 --- a/config/index.php +++ b/config/index.php @@ -690,7 +690,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { # Set up the "regular user" account *if we can, and if we need to* if( $conf->Root ) { # See if we need to - $wgDatabase2 = Database::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, '', 1 ); + $wgDatabase2 = Database::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1 ); if( $wgDatabase2->isOpen() ) { # Nope, just close the test connection and continue $wgDatabase2->close(); -- 2.20.1