On Wed, May 30, 2012 at 12:14 AM, Henny Savenije webmaster@henny-savenije.pe.kr wrote:
Why don't you try this handy tool, works like a charm, I have used it already for a long time
That's ok if you're trying to dump a MySQL database. But better to use something like mysqldump or one of the hotbackup tools (like xtrabackup). Even better, get a webhost that doesn't make you jump through hoops to get a backup of your own DB!!!
Anyway, that's all irrelevant. This thread has nothing to do with DB backups.
Please read http://svn.wikimedia.org/svnroot/mediawiki/trunk/mwdumper/README
-Jeremy
Thanks a lot for your response.
@Jeremy: I've changed to version 1.5 but run into other problems: http://pastebin.com/3v65rt2X I think there are files missing in the source code. This directory src/org/apache/commons/compress/ is empty.
I see mwdumper has not been under development for years. What do people use to load (wiki) xml data into database?
@ Henny, I'm trying to load xml data into database not backing up my database. I saw MySQLDumper has restore script that can read data from .gz file back into database but not sure if it does what I need. I'll take a look at it.
Thanks,
On Wed, May 30, 2012 at 12:24 AM, Jeremy Baron jeremy@tuxmachine.comwrote:
On Wed, May 30, 2012 at 12:14 AM, Henny Savenije webmaster@henny-savenije.pe.kr wrote:
Why don't you try this handy tool, works like a charm, I have used it already for a long time
That's ok if you're trying to dump a MySQL database. But better to use something like mysqldump or one of the hotbackup tools (like xtrabackup). Even better, get a webhost that doesn't make you jump through hoops to get a backup of your own DB!!!
Anyway, that's all irrelevant. This thread has nothing to do with DB backups.
Please read http://svn.wikimedia.org/svnroot/mediawiki/trunk/mwdumper/README
-Jeremy
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi,
On Wed, May 30, 2012 at 12:49 AM, chepukha ndkhanh824@gmail.com wrote:
I think there are files missing in the source code. This directory src/org/apache/commons/compress/ is empty.
I see mwdumper has not been under development for years.
Not quite right, it did have one commit ~3 months ago. but the last before that was >2 yrs back.
It looks like the original problem you mailed about and this new problem were both caused by that latest commit. That commit removed the bzip2 code which is now the source of your latest error. Maybe Oren (cc'd) can shed some light on why it was removed or how the current code should be compiled or run. The message for that commit just says it was removed but not why or what the new way to get that code is; also there were no updates to the README.
In the meantime you could just try checking out the older version (immediately before that last commit) and testing with that.
What do people use to load (wiki) xml data into database?
I don't know, maybe this is the only tool. Maybe someone else will chime in.
I saw MySQLDumper has restore script that can read data from .gz file back into database but not sure if it does what I need. I'll take a look at it.
Please avoid using that script if you can. If you're using a halfway decent host (or running your own server/working locally) then there's much better ways to do an import. If you need help importing a MySQL dump you can tell us more about what you're trying to do (.gz is not indication of dump format or structure, just compression format; we'd need more details) or come visit either #mediawiki or #mysql (both on freenode) and ask there.
-Jeremy
Le 30/05/12 08:14, Jeremy Baron a écrit :
Please avoid using that script if you can. If you're using a halfway decent host (or running your own server/working locally) then there's much better ways to do an import. If you need help importing a MySQL dump you can tell us more about what you're trying to do (.gz is not indication of dump format or structure, just compression format; we'd need more details) or come visit either #mediawiki or #mysql (both on freenode) and ask there.
Maybe we should just drop mwdumper entirely.
On Wed, May 30, 2012 at 5:35 AM, Antoine Musso hashar+wmf@free.fr wrote:
Le 30/05/12 08:14, Jeremy Baron a écrit :
Please avoid using that script if you can. If you're using a halfway decent host (or running your own server/working locally) then there's much better ways to do an import. If you need help importing a MySQL dump you can tell us more about what you're trying to do (.gz is not indication of dump format or structure, just compression format; we'd need more details) or come visit either #mediawiki or #mysql (both on freenode) and ask there.
Maybe we should just drop mwdumper entirely.
Or persuade Brion to work on it again ;-)
Also as a minor note: this was already moved to git as mediawiki/tools/mwdumper.
-Chad
Just want to confirm that the earlier version of mwdumper built successfully. It also worked well to load xml compressed in bz2 file into mysql database.
Thank you all for your responses.
On Wed, May 30, 2012 at 9:23 AM, Chad innocentkiller@gmail.com wrote:
On Wed, May 30, 2012 at 5:35 AM, Antoine Musso hashar+wmf@free.fr wrote:
Le 30/05/12 08:14, Jeremy Baron a écrit :
Please avoid using that script if you can. If you're using a halfway decent host (or running your own server/working locally) then there's much better ways to do an import. If you need help importing a MySQL dump you can tell us more about what you're trying to do (.gz is not indication of dump format or structure, just compression format; we'd need more details) or come visit either #mediawiki or #mysql (both on freenode) and ask there.
Maybe we should just drop mwdumper entirely.
Or persuade Brion to work on it again ;-)
Also as a minor note: this was already moved to git as mediawiki/tools/mwdumper.
-Chad
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Wed, May 30, 2012 at 9:23 AM, Chad innocentkiller@gmail.com wrote:
On Wed, May 30, 2012 at 5:35 AM, Antoine Musso hashar+wmf@free.fr wrote:
Le 30/05/12 08:14, Jeremy Baron a écrit :
Please avoid using that script if you can. If you're using a halfway decent host (or running your own server/working locally) then there's much better ways to do an import. If you need help importing a MySQL dump you can tell us more about what you're trying to do (.gz is not indication of dump format or structure, just compression format; we'd need more details) or come visit either #mediawiki or #mysql (both on freenode) and ask there.
Maybe we should just drop mwdumper entirely.
Or persuade Brion to work on it again ;-)
To be clear, the passage I wrote which is quoted above was a reference to mysqldumper.net not to mwdumper.
Also as a minor note: this was already moved to git as mediawiki/tools/mwdumper.
For the record that means the new location is https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/tools/mwdumper.git;a=summa...
-Jeremy
mediawiki-l@lists.wikimedia.org