1 include/master-slave.inc
3 grant replication slave on *.* to replssl@localhost require ssl;
4 create table t1 (t int);
6 change master to master_user='replssl',master_password='';
8 insert into t1 values (1);
12 change master to 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';
17 Master_SSL_Allowed = 'Yes'
18 Master_SSL_CA_Path = ''
19 Master_SSL_CA_File = 'MYSQL_TEST_DIR/std_data/cacert.pem'
20 Master_SSL_Cert = 'MYSQL_TEST_DIR/std_data/client-cert.pem'
21 Master_SSL_Key = 'MYSQL_TEST_DIR/std_data/client-key.pem'
22 include/check_slave_is_running.inc
24 change master to master_user='root',master_password='', master_ssl=0;
26 drop user replssl@localhost;
28 Master_SSL_Allowed = 'No'
29 Master_SSL_CA_Path = ''
30 Master_SSL_CA_File = 'MYSQL_TEST_DIR/std_data/cacert.pem'
31 Master_SSL_Cert = 'MYSQL_TEST_DIR/std_data/client-cert.pem'
32 Master_SSL_Key = 'MYSQL_TEST_DIR/std_data/client-key.pem'
33 include/check_slave_is_running.inc
36 master_host="localhost",
38 master_ssl_ca ='MYSQL_TEST_DIR/std_data/cacert.pem',
39 master_ssl_cert='MYSQL_TEST_DIR/std_data/client-cert.pem',
40 master_ssl_key='MYSQL_TEST_DIR/std_data/client-key.pem',
41 master_ssl_verify_server_cert=1;
43 create table t1 (t int);
44 insert into t1 values (1);
49 Master_SSL_Allowed = 'Yes'
50 Master_SSL_CA_Path = ''
51 Master_SSL_CA_File = 'MYSQL_TEST_DIR/std_data/cacert.pem'
52 Master_SSL_Cert = 'MYSQL_TEST_DIR/std_data/client-cert.pem'
53 Master_SSL_Key = 'MYSQL_TEST_DIR/std_data/client-key.pem'
54 include/check_slave_is_running.inc
56 include/stop_slave.inc
58 master_host="127.0.0.1",
62 master_ssl_verify_server_cert=0,