polardbxengine/mysql-test/suite/rpl/r/rpl_row_find_row.result

51 lines
1.8 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]
SET SQL_LOG_BIN=0;
CREATE TABLE t (a int, b int, c int, key(b));
SET SQL_LOG_BIN=1;
CREATE TABLE t (a int, b int, c int);
INSERT INTO t VALUES (1,2,4);
INSERT INTO t VALUES (4,3,4);
DELETE FROM t;
include/sync_slave_sql_with_master.inc
DROP TABLE t;
include/sync_slave_sql_with_master.inc
include/rpl_reset.inc
CREATE TABLE t1 (c1 INT NOT NULL, c2 INT NOT NULL, c3 INT, UNIQUE KEY(c1,c3), KEY(c2));
INSERT INTO t1(c1,c2) VALUES(1,1);
INSERT INTO t1(c1,c2) VALUES(1,2);
UPDATE t1 SET c1=1000 WHERE c2=2;
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:t1, slave:t1]
DROP TABLE t1;
#
# Bug#27244826: INVISIBLE INDEXES ARE NOT RESPECTED BY SLAVE UNDER ROW
# FORMAT
#
CREATE TABLE t1 ( id INT, KEY idx_id(id) );
INSERT INTO t1 VALUES (1), (2), (3);
include/sync_slave_sql_with_master.inc
# Alter idx_id index on slave to invisible.
ALTER TABLE t1 ALTER INDEX idx_id INVISIBLE;
DELETE FROM t1;
include/sync_slave_sql_with_master.inc
# check whether invisible attribute is respected
SELECT table_name, index_name, is_visible
FROM information_schema.statistics
WHERE index_name = 'idx_id';
TABLE_NAME INDEX_NAME IS_VISIBLE
t1 idx_id NO
SELECT * FROM sys.schema_unused_indexes WHERE index_name = 'idx_id';
object_schema object_name index_name
test t1 idx_id
SELECT rows_selected
FROM sys.schema_index_statistics
WHERE index_name = 'idx_id';
rows_selected
0
DROP TABLE t1;
include/rpl_end.inc