Mediawiki upgrade: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 28: | Line 28: | ||
//$defaultDateFormat = 'dmy or mdy'; | //$defaultDateFormat = 'dmy or mdy'; | ||
$defaultDateFormat = 'ISO 8601';//line by tobias | $defaultDateFormat = 'ISO 8601';//line by tobias | ||
====Signature==== | |||
"test signature MessagesEn.php changed now [[User:Tobiasco|Tobiasco]] 2008-05-17T20:51:48 (UTC)" | |||
*[[User:Tobiasco|Tobiasco]] 2009-03-15T07:27:00 (UTC) | |||
=== w\mul\includes\ChangesList.php === | === w\mul\includes\ChangesList.php === | ||
ca 188 | ca 188 | ||
Line 45: | Line 49: | ||
$this->insertUserRelatedLinks($s,$rc); | $this->insertUserRelatedLinks($s,$rc); | ||
</code> | </code> | ||
Revision as of 2009-03-15T07:28:01
- http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.12#Back_up_existing_files_and_the_database
- http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.13#Back_up_existing_files_and_the_database
- http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.14#Back_up_existing_files_and_the_database
While the upgrade scripts are well-maintained and robust, things could still go pear-shaped. Before proceeding to update the database schema, make a full backup of the wiki, including both the database and the files:
- the wiki's content, from the database. It may be a good idea to create an XML dump in addition to the SQL database dump.
- text dump: mysqldump --all-databases > file.txt
- xml dump: mysqldump --all-databases --xml > file.xml
- images and other media files (the contents of the images directory)
- configuration files, i.e. LocalSettings.php and AdminSettings.php (if present)
- MediaWiki's program files, including all skins and extensions, especially if you modified them.
See also
- http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
- http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
shell> mysqldump [options] db_name [tables] shell> mysqldump [options] --databases db_name1 [db_name2 db_name3...] shell> mysqldump [options] --all-databases
- mysqldump --tab=/path/to/some/dir --opt db_name
files to be changed
w\mul\languages\messages\messagesen.php
line 161 //$defaultDateFormat = 'dmy or mdy'; $defaultDateFormat = 'ISO 8601';//line by tobias
Signature
"test signature MessagesEn.php changed now Tobiasco 2008-05-17T20:51:48 (UTC)"
- Tobiasco 2009-03-15T07:27:00 (UTC)
w\mul\includes\ChangesList.php
ca 188
//$s .= $this->message['semicolon-separator'] . ' ' . $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . '; //tango.info
$s .= $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' ';
//$s .= $this->skin->userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] );
//$s .= $this->skin->userToolLinks( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] );
//tango.info
$s .= "". $this->skin->userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ) . ": ";
258
$this->insertTimestamp($s,$rc);
$this->insertUserRelatedLinks($s,$rc);