blob: e20ee119f5e9cd211575f6913db3e711ef2a7e63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#
# only global
#
--replace_result $MASTER_MYPORT MASTER_MYPORT
select @@global.port;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.port;
--replace_result $MASTER_MYPORT MASTER_MYPORT
show global variables like 'port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
show session variables like 'port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
select * from information_schema.global_variables where variable_name='port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
select * from information_schema.session_variables where variable_name='port';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global port=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session port=1;
|