| 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 |
[connection slave] |
| 7 |
CREATE DATABASE new_test; |
| 8 |
[connection master] |
| 9 |
use test; |
| 10 |
CREATE TEMPORARY TABLE t1(id int); |
| 11 |
include/sync_slave_sql_with_master.inc |
| 12 |
include/show_binlog_events.inc |
| 13 |
Log_name Pos Event_type Server_id End_log_pos Info |
| 14 |
slave-bin.000001 # Query # # CREATE DATABASE new_test |
| 15 |
slave-bin.000001 # Query # # use `new_test`; CREATE TEMPORARY TABLE t1(id int) |
| 16 |
SHOW STATUS LIKE 'Replica_open_temp_tables'; |
| 17 |
Variable_name Value |
| 18 |
Replica_open_temp_tables 1 |
| 19 |
[connection master] |
| 20 |
use test; |
| 21 |
DROP TEMPORARY TABLE IF EXISTS t1; |
| 22 |
include/sync_slave_sql_with_master.inc |
| 23 |
include/show_binlog_events.inc |
| 24 |
Log_name Pos Event_type Server_id End_log_pos Info |
| 25 |
slave-bin.000001 # Query # # CREATE DATABASE new_test |
| 26 |
slave-bin.000001 # Query # # use `new_test`; CREATE TEMPORARY TABLE t1(id int) |
| 27 |
slave-bin.000001 # Query # # use `new_test`; DROP TEMPORARY TABLE IF EXISTS `t1` /* generated by server */ |
| 28 |
SHOW STATUS LIKE 'Replica_open_temp_tables'; |
| 29 |
Variable_name Value |
| 30 |
Replica_open_temp_tables 0 |
| 31 |
[connection master] |
| 32 |
use test; |
| 33 |
CREATE TEMPORARY TABLE t1(id int); |
| 34 |
include/sync_slave_sql_with_master.inc |
| 35 |
SHOW STATUS LIKE 'Replica_open_temp_tables'; |
| 36 |
Variable_name Value |
| 37 |
Replica_open_temp_tables 1 |
| 38 |
[connection slave] |
| 39 |
SHOW STATUS LIKE 'Replica_open_temp_tables'; |
| 40 |
Variable_name Value |
| 41 |
Replica_open_temp_tables 0 |
| 42 |
DROP DATABASE new_test; |
| 43 |
include/rpl_end.inc |