exp:ezsqlinsertschema
Insert a database schema and data from a .dba file into a database (--type, --user).
Script bin/php/ezsqlinsertschema.php, code in kernel/private/classes/commands/ezsqlinsertschema.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezsqlinsertschema --help
php bin/php/ezsqlinsertschema.php --helpOptions
| Option | Value | Help |
|---|---|---|
--type | required | |
--user | required | |
--host | required | |
--password | optional | |
--port | required | |
--socket | required | |
--table-type | required | |
--table-charset | required | |
--insert-types | required | |
--allow-multi-insert | ||
--schema-file | required | |
--clean-existing |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [filename][database].
Related
Generated by ./console exp:help:examples from bin/php/ezsqlinsertschema.php, kernel/private/classes/commands/ezsqlinsertschema.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.