mysqldump
— A Database Backup Program
299
Write additional information in the dump file such as program version, server version, and
host. This option is enabled by default. To suppress this additional information, use
--skip-
comments
[305]
.
•
--compact
[299]
Produce more compact output. This option enables the
--skip-add-drop-table
[298]
,
--
skip-add-locks
[298]
,
--skip-comments
[305]
,
--skip-disable-keys
[300]
, and
--
skip-set-charset
[304]
options.
Note
Prior to MySQL 5.0.48, this option did not create valid SQL if the database
dump contained views. The recreation of views requires the creation and
removal of temporary tables and this option suppressed the removal of those
temporary tables. As a workaround, use
--compact
[299]
with the
--add-
drop-table
[298]
option and then manually adjust the dump file.
•
--compatible=name
[299]
Produce output that is more compatible with other database systems or with older MySQL servers.
The value of
name
can be
ansi
,
mysql323
,
mysql40
,
postgresql
,
oracle
,
mssql
,
db2
,
maxdb
,
no_key_options
,
no_table_options
, or
no_field_options
. To use several values, separate
them by commas. These values have the same meaning as the corresponding options for setting the
server SQL mode. See
Section 5.1.7, “Server SQL Modes”
.
This option does not guarantee compatibility with other servers. It only enables those SQL mode
values that are currently available for making dump output more compatible. For example,
--
compatible=oracle
[299]
does not map data types to Oracle types or use Oracle comment
syntax.
This option requires a server version of 4.1.0 or higher. With older servers, it does nothing.
•
--complete-insert
[299]
,
-c
Use complete
INSERT
statements that include column names.
•
--compress
[299]
,
-C
Compress all information sent between the client and the server if both support compression.
•
--create-options
[299]
Include all MySQL-specific table options in the
CREATE TABLE
statements.
•
--databases
[299]
,
-B
Dump several databases. Normally,
mysqldump
treats the first name argument on the command
line as a database name and following names as table names. With this option, it treats all name
arguments as database names.
CREATE DATABASE
and
USE
statements are included in the output
before each new database.
•
--debug[=debug_options]
[299]
,
-# [debug_options]
Write a debugging log. A typical
debug_options
string is
'd:t:o,file_name'
. The default value
is
'd:t:o,/tmp/mysqldump.trace'
.
•
--debug-info
[299]
Print debugging information and memory and CPU usage statistics when the program exits. This
option was added in MySQL 5.0.32.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...