summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/secure_file_priv_basic.test
blob: 836990cb70e44fe22e90856558af50787fe0126a (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
--source include/not_var_link.inc

#
# only global
#
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select @@global.secure_file_priv;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.secure_file_priv;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
show global variables like 'secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
show session variables like 'secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select * from information_schema.global_variables where variable_name='secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select * from information_schema.session_variables where variable_name='secure_file_priv';

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