22 lines
995 B
Plaintext
22 lines
995 B
Plaintext
#
|
|
# Bug#51770: UNINSTALL PLUGIN requires no privileges
|
|
#
|
|
set @orig_sql_mode = @@sql_mode;
|
|
set sql_mode=(select replace(@@sql_mode,'NO_AUTO_CREATE_USER',''));
|
|
Warnings:
|
|
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
|
|
GRANT INSERT ON mysql.plugin TO bug51770@localhost;
|
|
Warnings:
|
|
Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
|
|
set sql_mode= @orig_sql_mode;
|
|
Warnings:
|
|
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
|
|
INSTALL PLUGIN example SONAME 'ha_example.so';
|
|
UNINSTALL PLUGIN example;
|
|
ERROR 42000: DELETE command denied to user 'bug51770'@'localhost' for table 'plugin'
|
|
GRANT DELETE ON mysql.plugin TO bug51770@localhost;
|
|
UNINSTALL PLUGIN example;
|
|
DROP USER bug51770@localhost;
|
|
INSTALL PLUGIN example SONAME '../ha_example.so';
|
|
ERROR HY000: No paths allowed for shared library
|