Hi,
I'm upgrading from Mediawiki 1.5b3 to 1.5b4. Is it possible to just replace the site files or is there a database change that makes it necessary to execute the installation procedure again ?
Thanks for your help
I have already upgraded and your comment made me realised I forgot to run Update.php yet. It still seems to work though....
On 8/1/05, Nicolas STRANSKY Nicolas.Stransky@curie.fr wrote:
Hi,
I'm upgrading from Mediawiki 1.5b3 to 1.5b4. Is it possible to just replace the site files or is there a database change that makes it necessary to execute the installation procedure again ?
Thanks for your help
-- 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 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Le 01.08.2005 16:52, Hans Voss a écrit :
I have already upgraded and your comment made me realised I forgot to run Update.php yet. It still seems to work though....
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
Nicolas STRANSKY wrote:
Le 01.08.2005 16:52, Hans Voss a écrit :
I have already upgraded and your comment made me realised I forgot to run Update.php yet. It still seems to work though....
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
you only need to run update.php (or the installer) from b3->b4 if you wish to use the "trackbacks" feature, which requires a new table.
in general, X.Y -> X.Z (i.e. minor release) upgrades do not require any database changes; it will "just work" if you replace the files. this does not apply to beta versions, however.
major versions (X.Y -> Z.0) do require database changes; either run maintenance/update.php from the command line, or re-run the installer.
kate.
Nicolas STRANSKY wrote: <snip>
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
The process should be something like: 1/ back up your data 2/ lock database / shutdown site 3/ put new files from the tar.gz 4/ run ./maintenance/update.php (that will deal with database changes) 5/ unlock database / restart site
Le 02.08.2005 12:09, Ashar Voultoiz a écrit :
Nicolas STRANSKY wrote:
<snip>
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
The process should be something like: 1/ back up your data 2/ lock database / shutdown site 3/ put new files from the tar.gz 4/ run ./maintenance/update.php (that will deal with database changes) 5/ unlock database / restart site
Thanks for the hint. I guess that AdminSettings.php should contain the root password for the mysql database ?
Nicolas STRANSKY wrote:
Le 02.08.2005 12:09, Ashar Voultoiz a écrit :
Nicolas STRANSKY wrote:
<snip>
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
The process should be something like: 1/ back up your data 2/ lock database / shutdown site 3/ put new files from the tar.gz 4/ run ./maintenance/update.php (that will deal with database changes) 5/ unlock database / restart site
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.
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 wrote:
I guess that AdminSettings.php should contain the root password for the mysql database ?
Either that or another account with permissions to make table alterations and create tables.
-- brion vibber (brion @ pobox.com)
Ashar Voultoiz wrote:
Nicolas STRANSKY wrote:
<snip>
Yes it does seem to work but I don't even know what is the proper way to upgrade a mediawiki 1.5 installation.
The process should be something like: 1/ back up your data 2/ lock database / shutdown site 3/ put new files from the tar.gz 4/ run ./maintenance/update.php (that will deal with database changes) 5/ unlock database / restart site
A followup question from the audience: What's the best, "approved" way to lock the database? I can think of several ways I could go about it, but for all I know, a simple button to click somewhere might have been provided.
mediawiki-l@lists.wikimedia.org