Converts XML dumps to SQL queries in different formats.
- Use Composer to install dependencies.
- Copy the file
config/configuration.dist.json
toconfig/configuration.json
and adjust the values to meet your system.
Execute bin/xml2sql
from the command line.
-i <filename>
Input file-o <filename>
Output file--format <format>
SQL output format (mysql, sqlite, postgres)
--create
Create the XML dump from a Joomla! SQL file.--sampledata
Sample data will be included in the SQL file.
Using the --createall
option the script will do "allInOne (step)":
- Create a dummy database.
- Read a joomla.sql install file for MySQL and "install" it to the created database.
- Create a XML dump from the database. This will be the base for the following SQL install files.
- Create install.sql files in all available formats.
- MySQL
- SQLite
- PostgreSQL
@todo