28 lines
1.2 KiB
Plaintext
28 lines
1.2 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]
|
|
==== Case 1: slave connection ====
|
|
SELECT ATTR_NAME, ATTR_VALUE FROM performance_schema.session_connect_attrs
|
|
WHERE PROCESSLIST_ID = <thread_id> AND
|
|
ATTR_NAME IN ('program_name', '_client_replication_channel_name', '_client_role');
|
|
ATTR_NAME ATTR_VALUE
|
|
_client_replication_channel_name NULL
|
|
_client_role binary_log_listener
|
|
program_name mysqld
|
|
==== Case 2: mysqlbinlog connection ====
|
|
[connection slave]
|
|
include/stop_slave.inc
|
|
[connection master]
|
|
include/stop_dump_threads.inc
|
|
# Start mysqlbinlog
|
|
SELECT ATTR_NAME, ATTR_VALUE FROM performance_schema.session_connect_attrs
|
|
WHERE PROCESSLIST_ID = <thread_id> AND
|
|
ATTR_NAME IN ('program_name', '_client_replication_channel_name', '_client_role');
|
|
ATTR_NAME ATTR_VALUE
|
|
_client_role binary_log_listener
|
|
program_name mysqlbinlog
|
|
KILL <thread_id>;
|
|
include/rpl_end.inc
|