27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
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 a table using CREATE..SELECT clause #####
|
|
CREATE TABLE store (store_id INT) PARTITION BY RANGE (store_id) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20));
|
|
include/save_binlog_position.inc
|
|
INSERT INTO store VALUES (5);
|
|
INSERT INTO store VALUES (12);
|
|
include/rpl_partition_info.inc
|
|
include/save_binlog_position.inc
|
|
CREATE TABLE emp (m INT) PARTITION BY RANGE (store_id) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20))
|
|
SELECT store_id FROM store;
|
|
include/rpl_partition_info.inc
|
|
include/assert.inc [Check that the partition count is same in both tables]
|
|
include/save_binlog_position.inc
|
|
INSERT INTO emp values (3, 12);
|
|
include/rpl_partition_info.inc
|
|
include/save_binlog_position.inc
|
|
INSERT INTO emp values (4, 6), (5, 13) ;
|
|
include/rpl_partition_info.inc
|
|
DROP TABLE store;
|
|
DROP TABLE emp;
|
|
RESET MASTER;
|
|
include/rpl_end.inc
|