--source include/not_embedded.inc
--source include/have_example_plugin.inc

--echo #
--echo # Bug#46261 Plugins can be installed with --skip-grant-tables
--echo #

--replace_regex /\.dll/.so/
--error ER_OPTION_PREVENTS_STATEMENT
eval INSTALL PLUGIN example SONAME $HA_EXAMPLE_SO;

--replace_regex /\.dll/.so/
--error ER_OPTION_PREVENTS_STATEMENT
eval UNINSTALL PLUGIN example;

--echo End of 5.1 tests
