summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/init_file_basic.test
blob: 0b59fcd7be561401295a0f7120bfed0e3f1f3e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# only global
#
select @@global.init_file;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.init_file;
show global variables like 'init_file';
show session variables like 'init_file';
select * from information_schema.global_variables where variable_name='init_file';
select * from information_schema.session_variables where variable_name='init_file';

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