mirror of
https://github.com/MariaDB/server.git
synced 2025-08-20 14:22:25 +00:00
WL#5710 : mysql_plugin - enable or disable plugins
This patch adds a new client utility that enables or disables plugin features. The utility disables or enables a plugin using values (name, soname, and symbols) provided via a configuration file by the same name. For example, to ENABLE the daemon_example plugin, the utility will read the daemon_example.ini configuration file and use the values contained to enable or disable the plugin.
This commit is contained in:
@ -15,3 +15,5 @@
|
||||
|
||||
MYSQL_ADD_PLUGIN(daemon_example daemon_example.cc
|
||||
MODULE_ONLY MODULE_OUTPUT_NAME "libdaemon_example")
|
||||
|
||||
INSTALL(FILES daemon_example.ini DESTINATION ${INSTALL_PLUGINDIR})
|
||||
|
6
plugin/daemon_example/daemon_example.ini
Normal file
6
plugin/daemon_example/daemon_example.ini
Normal file
@ -0,0 +1,6 @@
|
||||
#
|
||||
# Plugin initialization file. Format using comma-separated values:
|
||||
# name, libname, symbol, [symbol, ]
|
||||
# Note: trailing comma is required.
|
||||
#
|
||||
daemon_example, libdaemon_example, daemon_example,
|
Reference in New Issue
Block a user