mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
20c9177518
Previously installed dynamic plugins are explicitly not loaded on startup with --skip-grant-tables enabled. However, INSTALL PLUGIN/UNINSTALL PLUGIN commands are allowed, and result in inconsistent error messages (reporting duplicate plugin or plugin does not exist). This patch adds a check for --skip-grant-tables mode, and returns error ER_OPTION_PREVENTS_STATEMENT to the user when the above commands are attempted.
8 lines
382 B
Text
8 lines
382 B
Text
#
|
|
# Bug#46261 Plugins can be installed with --skip-grant-tables
|
|
#
|
|
INSTALL PLUGIN example SONAME 'ha_example.so';
|
|
ERROR HY000: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
|
|
UNINSTALL PLUGIN example;
|
|
ERROR HY000: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
|
|
End of 5.1 tests
|