summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/extra_port_basic.test
blob: af5500e7ab739f30c9ca40b80cb525a0d4140ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# ulong readonly

#
# show the global and session values;
#
select @@global.extra_port;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.extra_port;
show global variables like 'extra_port';
show session variables like 'extra_port';
select * from information_schema.global_variables where variable_name='extra_port';
select * from information_schema.session_variables where variable_name='extra_port';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global extra_port=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session extra_port=1;