Brion Vibber <brion <at> pobox.com> writes:
rebuildall.php
Thank you so far (could have looked there for myself ...), but I'm still running into problems. I apologize for maybe being a blockhead here, I did the following: being in Mediawiki-homedir (...../mediawiki/):
Add/Edit lines in AdminSettings.php:
$wgDBadminuser = "root"; $wgDBadminpassword = "XXXXX"; $wgDBname = "wikidb";
(BTW, I'm not mixing up system and DB accounts here, the DB admin user account *is* named "root", its password is not "XXXXX" but the correct one and the DB is called "wikidb". Giving a ... mysql -uroot -pXXXXX wikidb ... brings me perfectly to the DB commandline.)
Change to maintenance/ and running the script ...
php -f ./rebuildall.php
... gives me:
"Konnte keine Verbindung zur Datenbank auf Access denied for user: 'root@localhost' (Using password: YES) herstellen."
[part German for "Couldn't connect to database at Access denied for user: 'root@localhost' (Using password: YES)."]
which is obviously the concat of two error messages ("Couldn't connect to database at ..." coming from some PHP DB library(?) and "Access denied ... (YES)." coming from mysql which is the usual error message when the PW doesn't match the username).
Maybe I'm a bit blockheaded here, but what's the mistake?