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 --disable_warnings
18 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
19 select * from performance_schema.global_variables where variable_name='plugin_dir';
20 --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR /mysql/ /
21 select * from performance_schema.session_variables where variable_name='plugin_dir';
22 --enable_warnings
23
24 #
25 # show that it's read-only
26 #
27 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
28 set global plugin_dir=1;
29 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
30 set session plugin_dir=1;
31