Hi all. Newbie here.
I've setup up MediaWiki on OS X using the arcane instructions here: http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Mac_OS_X
The Wiki works fine. Tested it by creating pages and uploading images etc.
Then I wanted to import articles from Wikipedia. So I downloaded the latest "articles only" dump (20051127_pages_articles.xml.bz2), and then performed a bzip2 -d on it. Then I renamed it as "articles.xml"
Next I tried to import it. I went to my wikis direcotory and renamed AdminSettings.sample as AdminSettings.php and changed $wgDBadminuser and $wgDBadminpassword to what I had specified when setting up the wiki (DB username and DB password on the Site Config screen)
Then, after going to the maintenance directory, I wrote this in the terminal: php importDump.php /Users/xed/Desktop/articles.xml
It spits out this error: <h1><img src='/~xed/testwiki/skins/common/images/wiki.png' style='float:left;margin-right:1em' alt=''>Testpedia has a problem</h1><p><strong>Sorry! This site is experiencing technical difficulties.</strong></p><p>Try waiting a few minutes and reloading.</p><p><small>(Can't contact the database server: Client does not support authentication protocol requested by server; consider upgrading MySQL client (localhost))</small></p>
I thought it might have something to do with the size of the "articles.xml" file (nearly 4GB), but when I tested it on a single exported page from Wikipedia, it does the same thing.
I'm running: MediaWiki: 1.5.2 PHP: 5.0.4 (apache) MySQL: 5.0.16-standard
Thanks
___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
| -----Original Message----- | From: wikitech-l-bounces@wikimedia.org | [mailto:wikitech-l-bounces@wikimedia.org] On Behalf Of Xed Mac | Sent: Wednesday, November 30, 2005 11:32 AM / | Hi all. Newbie here.
Hi. :-)
You must use mwdumper not importDump.php. It is most complex - you need at least two steps if not used pipe, but it is only right and quick way for very big wikis. importDump.php has still bugs and even if works, works as slow as snile (it's truth).
Look http://meta.wikimedia.org/wiki/Data_dumps
Using mwdumper with --order & --format you must preserve this sequence. If you code for ex. ... --format=sql:1.5 --output=blabla ... you not get .sql but not converted .xml :-))
Reg, Janusz 'Ency' Dorozynski
Hmm. I don't really understand. How do I use mwdumper? Double-clicking it comes up with an error ("The jar file "mwdumper.jar" couldn't be launched. Check the Console for possible error messages") . I'm almost completely ignorant about unix stuff, so can you be clearer? Is there one terminal command which will import the "articles.xml" file that I mentioned into my Wiki?
--- Doro¿yñski Janusz dorozynskij@poczta.onet.pl wrote:
| -----Original Message----- | From: wikitech-l-bounces@wikimedia.org | [mailto:wikitech-l-bounces@wikimedia.org] On Behalf Of Xed Mac | Sent: Wednesday, November 30, 2005 11:32 AM / | Hi all. Newbie here.
Hi. :-)
You must use mwdumper not importDump.php. It is most complex - you need at least two steps if not used pipe, but it is only right and quick way for very big wikis. importDump.php has still bugs and even if works, works as slow as snile (it's truth).
Look http://meta.wikimedia.org/wiki/Data_dumps
Using mwdumper with --order & --format you must preserve this sequence. If you code for ex. ... --format=sql:1.5 --output=blabla ... you not get .sql but not converted .xml :-))
Reg, Janusz 'Ency' Dorozynski
Wikitech-l mailing list Wikitech-l@wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
___________________________________________________________ WIN ONE OF THREE YAHOO! VESPAS - Enter now! - http://uk.cars.yahoo.com/features/competitions/vespa.html
| -----Original Message----- | From: wikitech-l-bounces@wikimedia.org | [mailto:wikitech-l-bounces@wikimedia.org] On Behalf Of Xed Mac | Sent: Wednesday, November 30, 2005 7:15 PM / | Hmm. I don't really understand. How do I use mwdumper? | Double-clicking it comes up with an error ("The jar file | "mwdumper.jar" couldn't be launched. Check the Console for | possible error messages") . I'm almost completely ignorant | about unix stuff, so can you be clearer? Is there one | terminal command which will import the "articles.xml" file | that I mentioned into my Wiki?
Well, you must have Java 1.5. Read http://download.wikimedia.org/tools/README.txt . The more can explain anybody here but not me. My unix experience is not so good that i can really help, sorry. I work with Windows.
Reg., J'E'D
| -----Original Message----- | From: ... Dorożyński Janusz | Sent: Wednesday, November 30, 2005 6:22 PM / | Using mwdumper with --order & --format you must preserve ...
Of course mwdumper have --output parameter not --order. Sorry.
Reg. J'E'D
Thanks I'll try to get mwdumper working for me. (Google shows 0 results for: "OS X" mwdumper.jar !)
--- Doro¿yñski Janusz dorozynskij@poczta.onet.pl wrote:
| -----Original Message----- | From: ... Doro¿yñski Janusz | Sent: Wednesday, November 30, 2005 6:22 PM / | Using mwdumper with --order & --format you must preserve ...
Of course mwdumper have --output parameter not --order. Sorry.
Reg. J'E'D
Wikitech-l mailing list Wikitech-l@wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
wikitech-l@lists.wikimedia.org