# # only global # # # on windows it's /lib/plugin # on unix it's /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;