Download MySQL Utilities - Oracle Documentation

Transcript
OPTIONS
You can specify the database name to be used in the resulting CREATE statement by prepending the .frm
file with the name of the database followed by a colon. For example, oltp:t1.frm will use 'oltp' for the
database name in the CREATE statement. The optional database name can also be used with paths. For
example, /home/me/oltp:t1.frm will use 'oltp' as the database name. If you leave off the optional database
name and include a path, the last folder will be the database name. For example /home/me/data1/t1.frm
will use 'data1' as the database name. If you do not want to use the last folder as the database name,
simply specify the colon like this: /home/me/data1/:t1.frm. In this case, the database will be omitted from
the CREATE statement.
OPTIONS
• --help
show the program's help page
• --license
Display license information and exit.
• --basedir=<basedir>
The base directory for the server installed. Use this or --server for the default mode.
• --diagnostic
Turn on diagnostic mode to read .frm files byte-by-byte and generate best-effort CREATE statement.
• --new-storage-engine=<engine>
Set the ENGINE= option for all .frm files read.
• --port=<port>
The port to use for the spawned server in the default mode. Must be a free port. Required for default
mode.
• --server=<server>
Connection information for a server. Use this option or --basedir for the default mode. If provided
with the diagnostic mode, the storage engine and character set information will be validated against this
server.
To connect to a server, it is necessary to specify connection parameters such as user name, host
name, password, and either a port or socket. MySQL Utilities provides a number of ways to supply this
information. All of the methods require specifying your choice via a command-line option such as -server, --master, --slave, etc. The methods include the following in order of most secure to least secure.
• Use login-paths from your .mylogin.cnf file (encrypted, not visible). Example : <login-path>[:<port>]
[:<socket>]
• Use a configuration file (unencrypted, not visible) Note: available in release-1.5.0. Example :
<configuration-file-path>[:<section>]
• Specify the data on the command-line (unencrypted, visible). Example :
<user>[:<passwd>]@<host>[:<port>][:<socket>]
• --ssl-ca
129