Le 02.08.2005 12:46, John R. Owens a écrit :
Thanks for the
hint.
I guess that AdminSettings.php should contain the root password for the
mysql database ?
It used to be that way, but now that's set in $wgDBpassword in
LocalSettings.php, and is inserted by the installation/configuration
script. You might remember it asked for the DB database name, user name,
and password at installation. I don't know just when that changed, but
it should be easy enough to dig out of a changelog.
I do remember, but when I first tried with the username/password of the
mysql wikiuser account, the update.php script failed with this error :
Creating transcache table...A database error has occurred
Query: CREATE TABLE transcache ( tc_url VARCHAR(255) NOT NULL,
tc_contents TEXT, tc_time INT NOT NULL, UNIQUE INDEX
tc_url_idx(tc_url) )
Function:
Error: 1044 Access denied for user: 'wikiuser@localhost' to database
'wikidb2' (localhost)
Backtrace:
GlobalFunctions.php line 435 calls wfbacktrace()
Database.php line 395 calls wfdebugdiebacktrace()
Database.php line 345 calls database::reportqueryerror()
install-utils.inc line 122 calls database::query()
updaters.inc line 78 calls dbsource()
updaters.inc line 638 calls add_table()
update.php line 30 calls do_all_updates()
So I had to put the root account in AdminSettings.php and then it worked
well.
--
Nicolas STRANSKY
Équipe Oncologie Moléculaire
Institut Curie - UMR 144 - CNRS Tel : +33 1 42 34 63 40
26, rue d'Ulm - 75248 Paris Cedex 5 - FRANCE Fax : +33 1 42 34 63 49