On 30/01/06, J Apple <visoredge(a)yahoo.com> wrote:
Don't even know what to do with the .jar file.
WHen I double click it nothing happens on my machine.
Can anyone give me more detailed instructions on what
I'm supposed to do with it?
1) Near the beginning of the readme, it says:
Sample command line for a direct database import:
java -server -jar mwdumper.jar --format=sql:1.5 pages_full.xml.bz2 |
mysql -u <username> -p <databasename>
That means you need to be at a
shell/command prompt, and type in that
command. There is no user-interface built into the tool ("* GUI
frontend(s)" is in the TODO list), so double clicking will not do
anything even if you have .jar files associated with the appropriate
Java interpretter.
Try typing that exact command, and see if it works; if not, play with
dumping into a file or connecting directly to the DB (see below).
2) Daunting as they look, the options are neatly divided into 3 categories:
a) where do you want your output (e.g. to file; output directly to
screen or another command; direct to database);
b) what format do you want (e.g. XML, like "export" dumps; SQL data
suitable for input to a particular version of MediaWiki
c) do you want to do any filtering while you're at it.
Ignore the fact that you can have multiple of each, and just pick one
"--output" and one "--format", in that order.
3) As a minor "netiquette" issue, please avoid quoting entire message
digests (or even whole messages) when you reply; instead, trim the
quoted part to just enough to see what you're referring to.
--
Rowan Collins BSc
[IMSoP]