MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mysqlbinlog_start_stop_1.inc
1 # ==== Purpose ====
2 #
3 # Auxiliary file used by main.mysqlbinlog-start-stop.
4 #
5 # This file runs mysqlbinlog with a fixed set of parameters specifying
6 # the source binlog, but varying how the start and stop positions are
7 # specified.
8 #
9 # ==== Usage ====
10 #
11 # --let $start_position= <binlog offset>
12 # --let $stop_position= <binlog offset>
13 # --let $start_datetime= <timestamp>
14 # --let $stop_datetime= <timestamp>
15 # --let $extra_options= <options to mysqlbinlog>
16 # --source extra/binlog_tests/mysqlbinlog_start_stop_1.inc
17 #
18 # Parameters:
19 # $start_position
20 # Offset to pass to --start-position
21 # $stop_position
22 # Offset to pass to --stop-position
23 # $start_datetime
24 # Offset to pass to --start-datetime
25 # $stop_datetime
26 # Offset to pass to --stop-datetime
27 # $extra_options
28 # Options for mysqlbinlog, specifying which input file to read.
29 
30 --let $option= --base64-output=never
31 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
32 
33 --let $option= --offset=2
34 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
35 
36 --let $option= --start-position=$start_position
37 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
38 
39 --let $option= --stop-position=$stop_position
40 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
41 
42 --let $option= --start-position=$start_position --stop-position=$stop_position
43 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
44 
45 --let $option= "--start-datetime=$start_datetime"
46 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
47 
48 --let $option= "--stop-datetime=$stop_datetime"
49 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc
50 
51 --let $option= "--start-datetime=$start_datetime" "--stop-datetime=$stop_datetime"
52 --source extra/binlog_tests/mysqlbinlog_start_stop_2.inc