XMHelp!! XML and MyPHPAdmin import problem
June 22, 2007 11:52 AM
Subscribe
MySQL, PHPMyAdmin and XML imports/export problem...
So about three months ago I was running a mediawiki server for some people who wanted to back up their data and go into a fresh mediawiki install. So, I used phpmyadmin as a front end to MySQL, and exported the database to XML, and tossed it on a burnt cd somewhere.
So, this week the people I'm running the server for have come back to me, and they need to get their old wiki back and running under a different database. No problem, I say, and I grab the backed up XML database.
The problem is PHPMyAdmin seems to have no support for importing XML data, only SQL. Does anyone know of a shell script/program/bit of dark magic to translate phpmyadmin's xml into valid SQL that I can import?
This data is mission critical, and needs to be re-loaded, so I cant tell these people to go screw. Any ideas? I'm on Linux, and I have physical access to the machine if it matters.
posted by SweetJesus to computers & internet (10 comments total)
It imports pretty much anything -- the only gotcha is you'll need remote access to the db (although you can always get a DB locally, import to that, then dump in SQL).
It may be worthwhile for you to learn about mysqldump and how to import from the mysql command line. I feel that dumping with PHPMyAdmin is a bad idea except for quick backups (ie, 'huh, wonder what this query is gonna do').
posted by fishfucker at 12:33 PM on June 22, 2007