Skip to content

Takes a mysqldump xml file and converts it to a MySQL-compatible SQL file

Notifications You must be signed in to change notification settings

initvector/Xml2Mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xml2mysql *

A very rough, untested library for converting mysqldump XML exports to SQL using PHP.

Example Usage

Generate SQL from mysqldump.xml and echo result

$dumpParser = new Initvector\Xml2Mysql\DumpParser();

$dumpParser->generateSql(
    'mysqldump.xml'
);

Generate SQL from mysqldump.xml and write to mysqldump.sql

$dumpParser = new Initvector\Xml2Mysql\DumpParser();

$dumpParser->generateSql(
    'mysqldump.xml',
    'mysqldump.sql'
);

* Use at your own peril.

About

Takes a mysqldump xml file and converts it to a MySQL-compatible SQL file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages