26 lines
813 B
Plaintext
26 lines
813 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]
|
|
CREATE TABLE t1 (pk int primary key, uk int not null, unique(uk)) engine=ndb;
|
|
STOP SLAVE;
|
|
insert into t1 values (1,1);
|
|
insert into t1 values (2,2);
|
|
begin;
|
|
insert into t1 values (1,2);
|
|
insert into t1 values (2,1);
|
|
commit;
|
|
delete from t1;
|
|
begin;
|
|
insert into t1 values (1,1);
|
|
insert into t1 values (2,2);
|
|
commit;
|
|
start slave;
|
|
select * from t1;
|
|
pk uk
|
|
1 1
|
|
2 2
|
|
drop table t1;
|
|
include/rpl_end.inc
|