2
3
4
6 mysql_convert_table_format - convert tables to use a given storage
7 engine
8
10 mysql_convert_table_format [options] db_name
11
13 mysql_convert_table_format converts the tables in a database to use a
14 particular storage engine (MyISAM by default).
15 mysql_convert_table_format is written in Perl and requires that the DBI
16 and DBD::mysql Perl modules be installed (see Section 4.20, “Perl
17 Installation Notes”).
18
19 Invoke mysql_convert_table_format like this:
20
21 shell> mysql_convert_table_format [options]db_name
22
23 The db_name argument indicates the database containing the tables to be
24 converted.
25
26 mysql_convert_table_format understands the options described in the
27 following list.
28
29 · --help
30
31 Display a help message and exit.
32
33 · --force
34
35 Continue even if errors occur.
36
37 · --host=host_name
38
39 Connect to the MySQL server on the given host.
40
41 · --password=password
42
43 The password to use when connecting to the server. Note that the
44 password value is not optional for this option, unlike for other
45 MySQL programs. You can use an option file to avoid giving the
46 password on the command line.
47
48 Specifying a password on the command line should be considered
49 insecure. See Section 6.6, “Keeping Your Password Secure”.
50
51 · --port=port_num
52
53 The TCP/IP port number to use for the connection.
54
55 · --socket=path
56
57 For connections to localhost, the Unix socket file to use.
58
59 · --type=engine_name
60
61 Specify the storage engine that the tables should be converted to
62 use. The default is MyISAM if this option is not given.
63
64 MySQL Enterprise. For expert advice on choosing the optimum storage
65 engine, subscribe to the MySQL Network Monitoring and Advisory Service.
66 For more information see
67 http://www.mysql.com/products/enterprise/advisors.html.
68
69 · --user=user_name
70
71 The MySQL username to use when connecting to the server.
72
73 · --verbose
74
75 Verbose mode. Print more information about what the program does.
76
77 · --version
78
79 Display version information and exit.
80
82 Copyright 1997-2007 MySQL AB
83
84 This documentation is NOT distributed under a GPL license. Use of this
85 documentation is subject to the following terms: You may create a
86 printed copy of this documentation solely for your own personal use.
87 Conversion to other formats is allowed as long as the actual content is
88 not altered or edited in any way. You shall not publish or distribute
89 this documentation in any form or on any media, except if you
90 distribute the documentation in a manner similar to how MySQL
91 disseminates it (that is, electronically for download on a Web site
92 with the software) or on a CD-ROM or similar medium, provided however
93 that the documentation is disseminated together with the software on
94 the same medium. Any other use, such as any dissemination of printed
95 copies or use of this documentation, in whole or in part, in another
96 publication, requires the prior written consent from an authorized
97 representative of MySQL AB. MySQL AB reserves any and all rights to
98 this documentation not expressly granted above.
99
100 Please email <docs@mysql.com> for more information.
101
103 For more information, please refer to the MySQL Reference Manual, which
104 may already be installed locally and which is also available online at
105 http://dev.mysql.com/doc/.
106
108 MySQL AB (http://www.mysql.com/). This software comes with no
109 warranty.
110
111
112