Oracle 5.0 Reference Manual page 314

Table of Contents

Advertisement

To reverse the effect of a group option, uses its
[299]). It is also possible to select only part of the effect of a group option by following it
compact
with options that enable or disable specific features. Here are some examples:
• To select the effect of
feature. To disable extended inserts and memory buffering, use
[300]
insert
--skip-quick
[304]
is sufficient because
quick
• To reverse
[303]
--opt
[305]
opt
--disable-keys
When you selectively enable or disable the effect of a group option, order is important because options
are processed first to last. For example,
[305]
would not have the intended effect; it is the same as
opt
can retrieve and dump table contents row by row, or it can retrieve the entire content from
mysqldump
a table and buffer it in memory before dumping it. Buffering in memory can be a problem if you are
dumping large tables. To dump tables row by row, use the
which enables
--quick
by default, so to enable memory buffering, use
If you are using a recent version of
MySQL server, you should not use the
[305]
instead.
skip-opt
Before MySQL 4.1.2, out-of-range numeric values such as
number) values are dumped by
table:
mysql>
CREATE TABLE t (f DOUBLE);
mysql>
INSERT INTO t VALUES(1e+111111111111111111111);
mysql>
INSERT INTO t VALUES(-1e111111111111111111111);
mysql>
SELECT f FROM t;
+------+
| f
|
+------+
|
inf |
| -inf |
+------+
For this table,
mysqldump
--
-- Dumping data for table `t`
--
INSERT INTO t VALUES (NULL);
INSERT INTO t VALUES (NULL);
The significance of this behavior is that if you dump and restore the table, the new table has contents
that differ from the original contents. This problem is fixed as of MySQL 4.1.2; you cannot insert
the table, so this
mysqldump
For additional information about mysqldump, see
supports the following options, which can be specified on the command line or in the
mysqldump
and
[mysqldump]
[client]
processing option files described at
Handling".
— A Database Backup Program
mysqldump
[303]
except for some features, use the
--opt
[304]. (Actually,
[303]
--opt
for all features except index disabling and table locking, use
[300]
--lock-tables
--disable-keys
[304]). The
[303]
--opt
mysqldump
--opt
as NULL. You can see this using the following sample
mysqldump
produces the following data output:
behavior is only relevant when you deal with old servers.
groups of an option file.
Section 4.2.3.4, "Command-Line Options that Affect Option-File
294
form
(--skip-opt
--skip-xxx
--opt
--skip-extended-insert
is on by default.)
[301].
[300]
--lock-tables
--skip-opt
[304]
--quick
option (and hence
--quick
[304].
--skip-quick
to generate a dump to be reloaded into a very old
[303]
or
--extended-insert
and inf, as well as
-inf
Section 7.4, "Using
also supports the options for
mysqldump
[305]
or
--skip-
option for each
--skip
[303]
--skip-extended-
[300]
--skip-
--skip-
[301]
--skip-
[305]
by itself.
option (or
[303],
--opt
[304]) is enabled
[300]
option. Use
(not-a-
NaN
for
Backups".
mysqldump
--
in
inf

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents