Oracle 5.0 Reference Manual page 1150

Table of Contents

Advertisement

• It acquires a global read lock on the master while taking the snapshot, which prevents updates on
the master during the load operation.
If you are loading large tables, you might have to increase the values of
and
net_write_timeout
System
Variables".
Note that
LOAD DATA FROM MASTER
it easy to have different users and privileges on the master and the slave.
To use
LOAD DATA FROM
have the
RELOAD
master tables you want to load. All master tables for which the user does not have the
privilege are ignored by
the user:
LOAD DATA FROM MASTER
load, but
SHOW DATABASES
Section 13.7.5.11,
FROM MASTER
copied.
13.4.2.3.
LOAD TABLE tbl_name FROM MASTER
LOAD TABLE
This feature is deprecated and should be avoided. It is subject to removal in a future version of
MySQL.
Since the current implementation of
very limited, these statements are deprecated as of MySQL 4.1 and removed in MySQL 5.5.
The recommended alternative solution to using
is using
MASTER
and DBD:mysql) and works for
SQL dumps on the master and pipe (or copy) these to a
advantage of working for all storage engines, but can be quite slow, since it works using SELECT.
Transfers a copy of the table from the master to the slave. This statement is implemented mainly
debugging
LOAD DATA FROM MASTER
connecting to the master server must have the
and the
SELECT
LOAD TABLE FROM MASTER
The conditions for
works only for
MASTER
well.
13.4.2.4.
MASTER_POS_WAIT()
SELECT MASTER_POS_WAIT('master_log_file',
This is actually a function, not a statement. It is used to ensure that the slave has read and executed
events up to a given position in the master's binary log. See
for a full description.
The following table shows the maximum permissible length for the string-valued options.
Option
MASTER_HOST
MASTER_USER
MASTER_PASSWORD
SQL Statements for Controlling Slave Servers
[479]
on both the master and slave servers. See
MASTER, the replication account that is used to connect to the master must
[577]
and
SUPER
LOAD DATA FROM
returns only databases for which the user has some privilege. See
"SHOW DATABASES
must have privileges for dropping and creating the databases and tables that are
tbl_name
FROM MASTER
or mysqlhotcopy. The latter requires Perl and two Perl modules
mysqldump
MyISAM
[578]
privilege for the master table to load. On the slave side, the user that issues
must have privileges for dropping and creating the table.
LOAD DATA FROM MASTER
tables. The timeout notes for
MyISAM
Syntax
does not copy any tables from the
[578]
privileges on the master and the
MASTER. This is because the master hides them from
calls
SHOW DATABASES
Syntax". On the slave side, the user that issues
Syntax
LOAD DATA FROM MASTER
LOAD DATA FROM MASTER
and
tables only. With mysqldump, you can create
ARCHIVE
mysql
operations. To use
[577]
RELOAD
apply here as well. For example,
master_log_pos
Maximum Length
60
16
32
1130
net_read_timeout
Section 5.1.4, "Server
database. This makes
mysql
SELECT
to know the master databases to
and
LOAD TABLE FROM MASTER
or
LOAD TABLE FROM
client on the slave. This has the
TABLE, the account used for
LOAD
and
[578]
privileges on the master
SUPER
LOAD TABLE FROM
LOAD DATA FROM MASTER
[, timeout])
Section 12.14, "Miscellaneous
[478]
[578]
privilege for all
[578]
SELECT
LOAD DATA
is
(DBI
apply as
Functions",

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents