mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
30 lines
881 B
Text
30 lines
881 B
Text
|
#
|
||
|
# only global
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# on windows it's <basedir>/lib/plugin
|
||
|
# on unix it's <basedir>/lib/mysql/plugin
|
||
|
#
|
||
|
--replace_result $MYSQL_LIBDIR MYSQL_LIBDIR /mysql/ /
|
||
|
select @@global.plugin_dir;
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
select @@session.plugin_dir;
|
||
|
--replace_result $MYSQL_LIBDIR MYSQL_LIBDIR /mysql/ /
|
||
|
show global variables like 'plugin_dir';
|
||
|
--replace_result $MYSQL_LIBDIR MYSQL_LIBDIR /mysql/ /
|
||
|
show session variables like 'plugin_dir';
|
||
|
--replace_result $MYSQL_LIBDIR MYSQL_LIBDIR /mysql/ /
|
||
|
select * from information_schema.global_variables where variable_name='plugin_dir';
|
||
|
--replace_result $MYSQL_LIBDIR MYSQL_LIBDIR /mysql/ /
|
||
|
select * from information_schema.session_variables where variable_name='plugin_dir';
|
||
|
|
||
|
#
|
||
|
# show that it's read-only
|
||
|
#
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
set global plugin_dir=1;
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
set session plugin_dir=1;
|
||
|
|