Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:ezconvertmysqltabletype

Convert the tables of a MySQL database to another table type (--list, --newtype=TYPE).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/ezconvertmysqltabletype.md

On this page

exp:ezconvertmysqltabletype

Convert the tables of a MySQL database to another table type (--list, --newtype=TYPE).

Script bin/php/ezconvertmysqltabletype.php, code in kernel/private/classes/commands/ezconvertmysqltabletype.php. Run it from the installation root, as the user the web server runs as:

./console exp:ezconvertmysqltabletype --help
php bin/php/ezconvertmysqltabletype.php --help

Options

OptionValueHelp
--hostrequiredConnect to host database
--userrequiredUser for login to the database
--passwordrequiredPassword to use when connecting to the database
--databaserequired
--listList the table types
--newtyperequiredConvert the database to the given type. Type can either be: myisam or innodb Make sure that you have made a BACKUP UP of YOUR DATABASE!
--usecopyTo convert the table we rename the original table and copy the data to the new table structure. This conversion method is much slower and has a higher risk to corrupt the data in the database. However this option may circumvent the MySQL crash on the ALTER query.

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 ...).


Generated by ./console exp:help:examples from bin/php/ezconvertmysqltabletype.php, kernel/private/classes/commands/ezconvertmysqltabletype.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x