mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
30 lines
705 B
Text
30 lines
705 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
|
|
*** Heartbeat over SSL ***
|
|
connection master;
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
RESET SLAVE;
|
|
CHANGE MASTER TO
|
|
MASTER_HOST='127.0.0.1',
|
|
MASTER_PORT=MASTER_PORT,
|
|
MASTER_USER='root',
|
|
MASTER_HEARTBEAT_PERIOD=0.1,
|
|
MASTER_LOG_FILE='MASTER_BINLOG',
|
|
MASTER_SSL=1,
|
|
MASTER_SSL_CA='MYSQL_TEST_DIR/std_data/cacert.pem',
|
|
MASTER_SSL_CERT='MYSQL_TEST_DIR/std_data/client-cert.pem',
|
|
MASTER_SSL_KEY='MYSQL_TEST_DIR/std_data/client-key.pem';
|
|
include/start_slave.inc
|
|
Master_SSL_Allowed: Yes
|
|
Heartbeat event has received
|
|
|
|
*** Clean up ***
|
|
include/stop_slave.inc
|
|
CHANGE MASTER TO
|
|
MASTER_SSL=0,
|
|
MASTER_SSL_CA='',
|
|
MASTER_SSL_CERT='',
|
|
MASTER_SSL_KEY='';
|
|
include/rpl_end.inc
|