-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathadmin_address_basic.test
48 lines (43 loc) · 1.57 KB
/
admin_address_basic.test
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--disable_query_log
CALL mtr.add_suppression("Failed to initialize TLS for channel: mysql_admin");
CALL mtr.add_suppression("Failed to set up SSL because of the following SSL library error");
--enable_query_log
#
# only global
#
select @@global.admin_address;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.admin_address;
show global variables like 'admin_address';
show session variables like 'admin_address';
--disable_warnings
select * from performance_schema.global_variables where variable_name='admin_address';
select * from performance_schema.session_variables where variable_name='admin_address';
select * from performance_schema.variables_info where variable_name='admin_address';
--enable_warnings
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global admin_address='::1';
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session admin_port='::1';
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set persist admin_port='::1';
#
# Set the option and verify that it is reflected
#
--let $PORT_OFFSET = 1
--expr $ADMIN_PORT = $MASTER_MYPORT + $PORT_OFFSET
--let $restart_parameters=restart: --skip-name-resolve --admin-address=127.0.0.1 --admin_port=$ADMIN_PORT
--replace_result $ADMIN_PORT ADMIN_PORT
--source include/restart_mysqld.inc
--disable_warnings
select * from performance_schema.global_variables where variable_name='admin_address';
select * from performance_schema.session_variables where variable_name='admin_address';
--enable_warnings
--echo #
--echo # Starting mysqld in the regular mode...
--echo #
--let $restart_parameters=
--source include/restart_mysqld.inc