Debian Codegraph @

mysql-test/suite/sys_vars/t/plugin_dir_basic.test

raw
1 #
2 # only global
3 #
4
5 #
6 # Don't rely on being able to guess the correct default.
7 # -master.opt file for this test sets plugin_dir to a known directory
8 #
9 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
10 select @@global.plugin_dir;
11 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
12 select @@session.plugin_dir;
13 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
14 show global variables like 'plugin_dir';
15 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
16 show session variables like 'plugin_dir';
17 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
18 select * from information_schema.global_variables where variable_name='plugin_dir';
19 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
20 select * from information_schema.session_variables where variable_name='plugin_dir';
21
22 #
23 # show that it's read-only
24 #
25 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
26 set global plugin_dir=1;
27 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
28 set session plugin_dir=1;
29