|
mysql 5以后自带了个叫mysql_convert_table_format的perl脚本工具,可批量转换。- [root@enpccacti01 mysql]# mysql_convert_table_format
- /usr/bin/mysql_convert_table_format version 1.1
- Conversion of a MySQL tables to other storage engines
- Usage: /usr/bin/mysql_convert_table_format database [table[ table ...]]
- If no tables has been specifed, all tables in the database will be converted.
- You can also use wildcards, ie "my%"
- The following options are available:
- -f, --force
- Continue even if there is some error.
- -?, --help
- Shows this help
- -e, --engine=ENGINE
- Converts tables to the given storage engine (Default: INNODB)
- -h, --host=HOST
- Host name where the database server is located. (Default: localhost)
- -p, --password=PASSWORD
- Password for the current user.
- -P, --port=PORT
- TCP/IP port to connect to if host is not "localhost".
- -S, --socket=SOCKET
- Socket to connect with.
- -u, --user=USER
- User name to log into the SQL server.
- -v, --verbose
- This is a test specific option that is only used when debugging a test.
- Print more information about what is going on.
- -V, --version
- Shows the version of this program.
复制代码 |
|