Oracle 5.0 Reference Manual page 1471

Table of Contents

Advertisement

Replication and Binary Logging Options and Variables
master-host=some_host
The first time you start the server as a replication slave, it reads and uses that option from the
file. The server then records the value in the
reads the master host value from the
you modify the
my.cnf
has no effect. You should use
Because the server gives an existing
described, you might prefer not to use startup options for these values at all, and instead specify them
by using the
CHANGE MASTER TO
This example shows a more extensive use of startup options to configure a slave server:
[mysqld]
server-id=2
master-host=db-master.mycompany.com
master-port=3306
master-user=pertinax
master-password=freitag
master-connect-retry=60
report-host=db-slave.mycompany.com
Startup options for replication slaves.
replication slave servers. Many of these options can be set while the server is running by using the
statement. Others, such as the
CHANGE MASTER TO
the slave server starts. Replication-related system variables are discussed later in this section.
--abort-slave-event-count
Command-Line Format
Option-File Format
When this option is set to some positive integer
behavior as follows: After the slave SQL thread has started,
executed; after that, the slave SQL thread does not receive any more events, just as if the network
connection from the master were cut. The slave thread continues to run, and the output from
displays
SLAVE STATUS
columns, but no further events are read from the relay log.
This option is used internally by the MySQL test suite for replication testing and debugging. It is not
intended for use in a production setting.
--disconnect-slave-event-count
Command-Line Format
Option-File Format
This option is used internally by the MySQL test suite for replication testing and debugging.
--log-slave-updates
master.info
master.info
file to specify a different master host of some_other_host, the change still
CHANGE MASTER TO
master.info
statement. See
The following list describes startup options for controlling
[1451]
--abort-slave-event-count=#
abort-slave-event-count
Permitted Values
Type
numeric
Default
0
Min
0
Value
in both the
Yes
Slave_IO_Running
[1451]
--disconnect-slave-event-count=#
disconnect-slave-event-count
Permitted Values
Type
numeric
Default
0
[1451]
1451
file. The next time you start the server, it
file only and ignores the value in the option file. If
instead.
file precedence over the startup options just
Section 13.4.2.1,
"CHANGE MASTER TO
options, can be set only when
--replicate-*
other than 0 (the default) it affects replication
value
log events are permitted to be
value
and the
my.cnf
Syntax".
SHOW
Slave_SQL_Running

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents