2010-03-09 13:16:17 +01:00
|
|
|
--source include/not_embedded.inc
|
|
|
|
--source include/have_example_plugin.inc
|
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Bug#51770: UNINSTALL PLUGIN requires no privileges
|
|
|
|
--echo #
|
|
|
|
|
2015-08-11 18:45:38 +02:00
|
|
|
CREATE USER bug51770@localhost;
|
2010-03-09 13:16:17 +01:00
|
|
|
GRANT INSERT ON mysql.plugin TO bug51770@localhost;
|
|
|
|
connect(con1,localhost,bug51770,,);
|
2010-03-14 12:16:59 +01:00
|
|
|
--replace_regex /\.dll/.so/
|
2010-06-10 11:11:52 +02:00
|
|
|
eval INSTALL PLUGIN example SONAME '$HA_EXAMPLE_SO';
|
2010-03-09 13:16:17 +01:00
|
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
|
|
UNINSTALL PLUGIN example;
|
|
|
|
connection default;
|
|
|
|
GRANT DELETE ON mysql.plugin TO bug51770@localhost;
|
|
|
|
connection con1;
|
|
|
|
UNINSTALL PLUGIN example;
|
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
|
|
|
DROP USER bug51770@localhost;
|
2010-12-01 13:54:50 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# BUG#58246: INSTALL PLUGIN not secure & crashable
|
|
|
|
#
|
|
|
|
# The bug consisted of not recognizing / on Windows, so checking / on
|
|
|
|
# all platforms should cover this case.
|
|
|
|
|
2011-07-02 22:12:12 +02:00
|
|
|
let $path = `select CONCAT_WS('/', '..', '$HA_EXAMPLE_SO')`;
|
2010-12-02 09:13:31 +01:00
|
|
|
--replace_regex /\.dll/.so/
|
2010-12-01 13:54:50 +01:00
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
eval INSTALL PLUGIN example SONAME '$path';
|
|
|
|
|
2019-07-26 13:15:44 +02:00
|
|
|
#
|
|
|
|
# Bug#27302459: EMPTY VALUE IN MYSQL.PLUGIN TABLE CAUSES SERVER TO EXIT ON STARTUP
|
|
|
|
#
|
|
|
|
insert mysql.plugin values ();
|
|
|
|
source include/restart_mysqld.inc;
|
|
|
|
delete from mysql.plugin where name = '';
|
|
|
|
|
|
|
|
--echo # End of 5.5 tests
|