2010-03-09 13:16:17 +01:00
|
|
|
#
|
|
|
|
# Bug#51770: UNINSTALL PLUGIN requires no privileges
|
|
|
|
#
|
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;
|
2016-03-25 17:51:22 +01:00
|
|
|
connect con1,localhost,bug51770,,;
|
2010-03-09 13:16:17 +01:00
|
|
|
INSTALL PLUGIN example SONAME 'ha_example.so';
|
|
|
|
UNINSTALL PLUGIN example;
|
2022-07-16 14:39:17 +02:00
|
|
|
ERROR 42000: DELETE command denied to user 'bug51770'@'localhost' for table `mysql`.`plugin`
|
2016-03-25 17:51:22 +01:00
|
|
|
connection default;
|
2010-03-09 13:16:17 +01:00
|
|
|
GRANT DELETE ON mysql.plugin TO bug51770@localhost;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection con1;
|
2010-03-09 13:16:17 +01:00
|
|
|
UNINSTALL PLUGIN example;
|
2016-03-25 17:51:22 +01:00
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
2010-03-09 13:16:17 +01:00
|
|
|
DROP USER bug51770@localhost;
|
2010-12-01 13:54:50 +01:00
|
|
|
INSTALL PLUGIN example SONAME '../ha_example.so';
|
|
|
|
ERROR HY000: No paths allowed for shared library
|
2019-07-26 13:15:44 +02:00
|
|
|
insert mysql.plugin values ();
|
2019-07-28 13:43:26 +02:00
|
|
|
# restart
|
2019-07-26 13:15:44 +02:00
|
|
|
delete from mysql.plugin where name = '';
|
|
|
|
# End of 5.5 tests
|