Oracle 5.0 Reference Manual page 367

Table of Contents

Advertisement

mysqlbinlog
--stop-datetime=datetime
Stop reading the binary log at the first event having a timestamp equal to or later than the
argument. This option is useful for point-in-time recovery. See the description of the
[346]
option for information about the
datetime
This option is useful for point-in-time recovery. See
Strategy".
--stop-position=N
Stop reading the binary log at the first event having a position equal to or greater than N. This option
applies to the last log file named on the command line.
This option is useful for point-in-time recovery. See
Strategy".
[347],
--to-last-log
Do not stop at the end of the requested binary log from a MySQL server, but rather continue printing
until the end of the last binary log. If you send the output to the same MySQL server, this may lead to
an endless loop. This option requires
--user=user_name
The MySQL user name to use when connecting to a remote server.
[347],
--version
-V
Display version information and exit.
In MySQL 5.0, the version number shown for
You can also set the following variable by using
open_files_limit
Specify the number of open file descriptors to reserve.
It is also possible to set variables by using
syntax. This syntax is deprecated.
var_name=value
You can pipe the output of
the binary log. This technique is used to recover from a crash when you have an old backup (see
Section 7.5, "Point-in-Time (Incremental) Recovery Using the Binary
shell>
mysqlbinlog binlog.000001 | mysql -u root -p
Or:
shell>
mysqlbinlog binlog.[0-9]* | mysql -u root -p
You can also redirect the output of
statement log first (for example, to remove statements that you do not want to execute for some
reason). After editing the file, execute the statements that it contains by using it as input to the
program:
shell>
mysqlbinlog binlog.000001 > tmpfile
shell> ...
edit tmpfile
shell>
mysql -u root -p < tmpfile
When
is invoked with the
mysqlbinlog
events with an offset in the binary log greater than or equal to a given position (the given position
— Utility for Processing Binary Log Files
[347]
[347]
-t
--read-from-remote-server
[347],
-u user_name
mysqlbinlog
--var_name=value
--set-variable=var_name=value
into the
mysqlbinlog
mysqlbinlog
...
--start-position
347
value.
datetime
Section 7.3, "Example Backup and Recovery
Section 7.3, "Example Backup and Recovery
is always 3.2.
syntax:
client to execute the events contained in
mysql
Log"). For example:
to a text file instead, if you need to modify the
[346]
option, it displays only those
datetime
--start-
[346].
or
-O
mysql

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents