| 1 |
include/master-slave.inc |
| 2 |
Warnings: |
| 3 |
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 |
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information. |
| 5 |
[connection master] |
| 6 |
select * from performance_schema.replication_applier_configuration; |
| 7 |
CHANNEL_NAME DESIRED_DELAY PRIVILEGE_CHECKS_USER REQUIRE_ROW_FORMAT REQUIRE_TABLE_PRIMARY_KEY_CHECK ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_VALUE |
| 8 |
0 NULL NO STREAM OFF NULL |
| 9 |
set @pfs_columns = "*"; |
| 10 |
TABLE: "replication_applier_configuration" |
| 11 |
INDEXES: PK (CHANNEL_NAME) |
| 12 |
|
| 13 |
## Create index_test() procedure |
| 14 |
DROP PROCEDURE IF EXISTS index_test; |
| 15 |
|
| 16 |
===== BEGIN TEST ===== |
| 17 |
======== |
| 18 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME is null |
| 19 |
|
| 20 |
OK: Handler_read_key |
| 21 |
|
| 22 |
OK: Result set: Empty Expected: Empty |
| 23 |
|
| 24 |
OK: Extra rows: 0 Missing rows: 0 |
| 25 |
======== |
| 26 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME is not null |
| 27 |
|
| 28 |
OK: Handler_read_key |
| 29 |
|
| 30 |
OK: Result set: Non-empty Expected: Non-empty |
| 31 |
|
| 32 |
OK: Extra rows: 0 Missing rows: 0 |
| 33 |
======== |
| 34 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME = '' |
| 35 |
|
| 36 |
OK: Handler_read_key |
| 37 |
|
| 38 |
OK: Result set: Non-empty Expected: Non-empty |
| 39 |
|
| 40 |
OK: Extra rows: 0 Missing rows: 0 |
| 41 |
======== |
| 42 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME != '' |
| 43 |
|
| 44 |
OK: Handler_read_key |
| 45 |
|
| 46 |
OK: Result set: Empty Expected: Empty |
| 47 |
|
| 48 |
OK: Extra rows: 0 Missing rows: 0 |
| 49 |
======== |
| 50 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME = 'impossible' |
| 51 |
|
| 52 |
OK: Handler_read_key |
| 53 |
|
| 54 |
OK: Result set: Empty Expected: Empty |
| 55 |
|
| 56 |
OK: Extra rows: 0 Missing rows: 0 |
| 57 |
======== |
| 58 |
SELECT * FROM performance_schema.replication_applier_configuration WHERE CHANNEL_NAME != 'impossible' ORDER BY CHANNEL_NAME DESC |
| 59 |
|
| 60 |
OK: Handler_read_key |
| 61 |
|
| 62 |
OK: Result set: Non-empty Expected: Non-empty |
| 63 |
|
| 64 |
OK: Extra rows: 0 Missing rows: 0 |
| 65 |
|
| 66 |
===== CLEAN UP ===== |
| 67 |
DROP PROCEDURE index_test; |
| 68 |
DROP TABLE IF EXISTS test.indexes_off; |
| 69 |
DROP TABLE IF EXISTS test.indexes_on; |
| 70 |
include/rpl_end.inc |