20 lines
839 B
Plaintext
20 lines
839 B
Plaintext
include/master-slave.inc
|
|
Warnings:
|
|
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
[connection master]
|
|
include/stop_slave.inc
|
|
SET @old_log_output= @@log_output;
|
|
SET GLOBAL log_output= 'TABLE';
|
|
TRUNCATE mysql.general_log;
|
|
include/start_slave.inc
|
|
CREATE TABLE t1 (i int NOT NULL PRIMARY KEY);
|
|
include/sync_slave_sql_with_master.inc
|
|
DROP TABLE t1;
|
|
include/sync_slave_sql_with_master.inc
|
|
include/stop_slave.inc
|
|
SET GLOBAL log_output= @old_log_output;
|
|
TRUNCATE mysql.general_log;
|
|
include/start_slave.inc
|
|
include/rpl_end.inc
|