33 lines
815 B
Plaintext
33 lines
815 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 (a INT KEY, b INT) ROW_FORMAT=DYNAMIC ENGINE=NDB;
|
|
INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
|
|
ALTER TABLE t1 ALGORITHM=INPLACE, CHANGE b c INT;
|
|
SELECT * FROM t1 ORDER BY a;
|
|
a c
|
|
1 1
|
|
2 2
|
|
3 3
|
|
INSERT INTO t1 VALUES (6,6),(7,7),(8,8);
|
|
SELECT * FROM t1 ORDER BY a;
|
|
a c
|
|
1 1
|
|
2 2
|
|
3 3
|
|
6 6
|
|
7 7
|
|
8 8
|
|
SELECT * FROM t1 ORDER BY a;
|
|
a c
|
|
1 1
|
|
2 2
|
|
3 3
|
|
6 6
|
|
7 7
|
|
8 8
|
|
DROP TABLE t1;
|
|
include/rpl_end.inc
|