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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
P Please consider the environment before printing this e-mail
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 guess you don't need an http-url, but a jdbc-style one... e.g. mysql://user@host/database or something like that... -- chris ------ Der Inhalt dieses E-Mails ist streng vertraulich und m�glicherweise gesetzlich besonders gesch�tzt. Dieses E-Mail ist nur f�r den Adressaten bestimmt. Wenn Sie nicht der beabsichtigte Empf�nger sind, ist es Ihnen nicht gestattet und stellt m�glicherweise einen Gesetzesverstoss dar, dieses E-mail zu kopieren, zu verbreiten oder anderweitig zu verwenden. In diesem Fall sollten Sie uns so schnell wie m�glich benachrichtigen und dieses E-mail l�schen.
Le contenu de ce courriel est strictement confidentiel et probablement l�galement prot�g�. Il n'est adress� qu'aux destinataires mentionn�s. Si vous n'en faites pas partie, vous n'avez pas l'autorisation de le copier, ni de le diffuser, ni m�me de le destiner � un autre usage - ce qui dans chaque cas peut en effet constituer une infraction � la loi. Dans ce cas, vous devriez nous en informer imm�diatement et effacer ce courriel.
Il contenuto del presente messaggio elettronico � da considerare di massima riservatezza e possibilmente � protetto in modo particolare dalla legge. La presente e-mail � riservata alla sola attenzione della persona destinataria. Se lei non � la persona che avrebbe dovuto ricevere la e-mail, non le � permesso e possibilmente rappresenta una violazione della legge, copiare la presente e-mail, diffonderla o utilizzarla in qualsiasi altro modo. In questo caso lei dovrebbe informarci al pi� presto possibile e cancellare la presente e-mail.
wikitech-l@lists.wikimedia.org