I think it should work in this way:
 

As you said, the old mw is installed at /var/wiki, and the new in /var/wiki-new.
Copy all your database tables to new tables with prefix (say "new_") in the 
same database.
set "$wgDBprefix = "new_";" for your new mw.
Run maintenance/update.php on /var/wiki-new, but NOT on /var/wiki.

Regards,
Ross Xu

--- On Tue, 9/21/10, trueskew <[email protected]> wrote:


From: trueskew <[email protected]>
Subject: Re: [Mediawiki-l] connect to wikis to the same database?
To: "'MediaWiki announcements and site admin list'" 
<[email protected]>
Received: Tuesday, September 21, 2010, 12:02 AM


I haven't seen details on whether the database has stayed the same, or what
the details of any schema changes may be.  If there's a file that calls them
out, please let use know.

If not, the INSTALL, UPGRADE, and RELEASE-NOTES files of the mediawiki
release provide information for upgrading, and they start with "It is
imperative that, prior to attempting an upgrade of the database schema, you
take a complete backup of your wiki database and files and verify it."
That's a pretty good commercial for not doing what you'd like to do and
either moving to another machine (or a virtual machine).

For what it's worth, I needed to change the home directory of one of my
sites.  I did what you're asking about, but it was with the same version.  

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Henny Savenije
Sent: Monday, September 20, 2010 4:16 AM
To: Uwe Brauer; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] connect to wikis to the same database?

That should work as long as the database structure of the new and old
version is the same

At 06:33 PM 9/20/2010, you wrote:
>Hello
>
>I am running mediawiki 1.9.3 and would like to try more recent version.
>Could I install the most recent version of mediawiki (and leave the old 
>in place) and connect both to the same database or would this cause 
>problems?
>
>Say the old is installed in
>/var/wiki
>and the new in
>/var/wiki-new
>
>Thanks
>
>Uwe Brauer
>
>
>_______________________________________________
>MediaWiki-l mailing list
>[email protected]
>https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>No virus found in this incoming message.
>Checked by AVG - www.avg.com
>Version: 9.0.851 / Virus Database: 271.1.1/3146 - Release Date: 
>09/20/10 03:34:00

                  _   _
                 (o) (o)
      oOOO----(_)----OOOo---
Henny (Lee Hae Kang)
-----------------------------
http://www.henny-savenije.pe.kr Portal to all my sites
http://www.hendrick-hamel.henny-savenije.pe.kr (in English) Feel free to
discover Korea with Hendrick Hamel (1653-1666)
http://www.hendrick-hamel.henny-savenije.pe.kr/indexk2.htm In Korean
http://www.hendrick-hamel.henny-savenije.pe.kr/Dutch In Dutch
http://www.vos.henny-savenije.pe.kr Frits Vos Article about Witsen and
Eibokken and his first Korean-Dutch dictionary
http://www.cartography.henny-savenije.pe.kr (in English) Korea through
Western Cartographic eyes http://www.hwasong.henny-savenije.pe.kr Hwasong
the fortress in Suwon http://www.oldKorea.henny-savenije.pe.kr Old Korea in
pictures http://www.british.henny-savenije.pe.kr A British encounter in
Pusan (1797) http://www.genealogy.henny-savenije.pe.kr/ Genealogy
http://www.henny-savenije.pe.kr/phorum Bulletin board for Korean studies


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

 

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to