Thanks to all.
I am now trying to download it again with a download tool
Wish me luck :)
I'm afraid I don't understand how to open these files. I downloaded a
small .bz2 file, to see how it works.
Just to make it clear, my goal is to get all the data from the dumps, to
MySQL database.
In mediawiki MWDumper page
http://www.mediawiki.org/wiki/MWDumper#Example_of_using_mwdumper_with_a_
direct_connection_to_MySQL_on_WindowsXP
I tried to run the following commands:
Set
class=mwdumper.jar;mysql-connector-java-3.1.12/mysql-connector-java-3.1.
12-bin.jar
set data="fullpath_to_myfile.xml.bz2"
java -client -classpath %class% org.mediawiki.dumper.Dumper "--
output=mysql://127.0.0.1/myWikipediaDatabase?user=<myusername>&password=
<mypassword>" "--format=sql:1.5" %data%
[I bolded the variables I've replaced with my own]
Exception in thread "main" java.io.IOException: com.mysql.jdbc.Driver
at org.mediawiki.dumper.Dumper.connectMySql(Unknown Source)
at org.mediawiki.dumper.Dumper.openOutputFile(Unknown Source)
at org.mediawiki.dumper.Dumper.main(Unknown Source)
I installed mysql-connector-java-5.0.4.
What am I doing wrong?
What is org.mediawiki.dumper.Dumper? Where do I get this file from? Am I
supposed to have it after installing something?
I tried to run
java -server -classpath
mysql-connector-java-3.1.11/mysql-connector-java-3.1.11-bin.jar:mwdumper
.jar \
org.mediawiki.dumper.Dumper
--output=mysql://127.0.0.1/testwiki?user=wiki\&password=wiki \
--format=sql:1.4 20051020_pages_articles.xml.bz2
I don't have a java server installed at the moment so I tried to run
with out it.
I got -
Exception in thread "main" java.lang.NoClassDefFoundError:
org/mediawiki/dumper/Dumper
Is this something to do with the server? If it's necessary I will
install it, though I prefer not to.
Thanks a lot
Osnat
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l
P Please consider the environment before printing this e-mail