summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/t/galera_sst_mysqldump_with_key.test
blob: c813e04169f994be8a0378c7a6090e9defb076be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Test mysqldump SST with client SSL key. See galera_sst_mysqldump_with_key.cnf for the configuration on the client side.
#

--source include/big_test.inc
--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_openssl.inc

--source suite/galera/include/galera_sst_set_mysqldump.inc

--connection node_1
CREATE USER sslsst;
GRANT ALL PRIVILEGES ON *.* TO sslsst;
GRANT USAGE ON *.* TO sslsst REQUIRE SSL;

SET GLOBAL wsrep_sst_auth = 'sslsst:';

--source suite/galera/include/galera_st_disconnect_slave.inc

--source suite/galera/include/galera_sst_restore.inc
DROP USER sslsst;

--connection node_2
# We have to manually restore global_log and slow_query_log due to mysql-wsrep#108
# Otherwise MTR's check_testcases complains

SET GLOBAL general_log = ON;
SET GLOBAL slow_query_log = ON;