1 --source include/not_embedded.inc
2 --source include/have_example_plugin.inc
5 --echo # Bug#51770: UNINSTALL PLUGIN requires no privileges
8 GRANT INSERT ON mysql.plugin TO bug51770@localhost;
9 connect(con1,localhost,bug51770,,);
10 --replace_regex /\.dll/.so/
11 eval INSTALL PLUGIN example SONAME $HA_EXAMPLE_SO;
12 --error ER_TABLEACCESS_DENIED_ERROR
13 UNINSTALL PLUGIN example;
15 GRANT DELETE ON mysql.plugin TO bug51770@localhost;
17 UNINSTALL PLUGIN example;
20 DROP USER bug51770@localhost;
23 # BUG#58246: INSTALL PLUGIN not secure & crashable
25 # The bug consisted of not recognizing / on Windows, so checking / on
26 # all platforms should cover this case.
28 let $path = `select CONCAT_WS('/', '..', $HA_EXAMPLE_SO)`;
29 --replace_regex /\.dll/.so/
30 --error ER_UDF_NO_PATHS
31 eval INSTALL PLUGIN example SONAME '$path';