2011-07-19 16:17:58 +02:00
|
|
|
#
|
|
|
|
# Ensure the plugin isn't loaded.
|
|
|
|
#
|
|
|
|
SELECT * FROM mysql.plugin WHERE name = 'daemon_example' ORDER BY name;
|
|
|
|
name dl
|
|
|
|
#
|
|
|
|
# Enable the plugin...
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Ensure the plugin is now loaded.
|
|
|
|
#
|
|
|
|
SELECT * FROM mysql.plugin WHERE name = 'daemon_example' ORDER BY name;
|
|
|
|
name dl
|
|
|
|
daemon_example libdaemon_example.so
|
|
|
|
#
|
|
|
|
# Disable the plugin...
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Ensure the plugin isn't loaded.
|
|
|
|
#
|
|
|
|
SELECT * FROM mysql.plugin WHERE name = 'daemon_example' ORDER BY name;
|
|
|
|
name dl
|
|
|
|
#
|
|
|
|
# Attempt to load non-existant plugin
|
|
|
|
#
|
2011-07-19 16:24:14 +02:00
|
|
|
ERROR: Cannot read plugin config file NOT_THERE_AT_ALL. File does not exist.
|
2011-07-19 16:17:58 +02:00
|
|
|
#
|
|
|
|
# Attempt to use non-existant plugin.ini file
|
|
|
|
#
|
2011-07-19 16:24:14 +02:00
|
|
|
ERROR: Cannot read plugin config file daemon_example. File does not exist.
|
2011-07-19 16:17:58 +02:00
|
|
|
#
|
|
|
|
# Attempt to omit the plugin
|
|
|
|
#
|
|
|
|
ERROR: No plugin specified.
|
|
|
|
#
|
|
|
|
# Attempt to omit DISABLE|ENABLE
|
|
|
|
#
|
|
|
|
ERROR: missing operation. Please specify either '<plugin> ENABLE' or '<plugin> DISABLE'.
|
|
|
|
#
|
|
|
|
# Attempt to use bad paths - datadir
|
|
|
|
#
|
|
|
|
ERROR: Cannot access datadir at '/data_not_there/'.
|
|
|
|
#
|
|
|
|
# Attempt to use bad paths - basedir
|
|
|
|
#
|
|
|
|
ERROR: Cannot access basedir at '/basedir_not_there/'.
|
|
|
|
#
|
|
|
|
# Attempt to use bad paths - plugin_dir
|
|
|
|
#
|
2011-07-19 16:24:14 +02:00
|
|
|
ERROR: Cannot read plugin config file daemon_example. File does not exist.
|
2011-07-19 16:17:58 +02:00
|
|
|
#
|
|
|
|
# Missing library
|
|
|
|
#
|
|
|
|
ERROR: The plugin library is missing or in a different location.
|
|
|
|
#
|
|
|
|
# Bad format for config file
|
|
|
|
#
|
2011-07-19 16:27:15 +02:00
|
|
|
ERROR: Cannot read plugin config file daemon_example. Bad format in plugin configuration file.
|
2011-07-19 16:17:58 +02:00
|
|
|
#
|
|
|
|
# Missing base_dir option
|
|
|
|
#
|
|
|
|
ERROR: Missing --basedir option.
|
|
|
|
#
|
|
|
|
# Missing data_dir option
|
|
|
|
#
|
|
|
|
ERROR: Missing --datadir option.
|
|
|
|
#
|
|
|
|
# Missing plugin_dir option
|
|
|
|
#
|
|
|
|
ERROR: Missing --plugin_dir option.
|
|
|
|
#
|
|
|
|
# Show the help.
|
|
|
|
#
|
2011-07-19 16:35:03 +02:00
|
|
|
mysql_plugin Ver V.V.VV Distrib XX.XX.XX
|
2011-07-19 16:17:58 +02:00
|
|
|
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
|
|
|
|
|
|
|
|
Enable or disable plugins.
|
|
|
|
|
|
|
|
Usage: mysql_plugin [options] <plugin> ENABLE|DISABLE
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-?, --help Display this help and exit.
|
|
|
|
-b, --basedir=name The basedir for the server.
|
|
|
|
-d, --datadir=name The datadir for the server.
|
|
|
|
-p, --plugin-dir=name
|
|
|
|
The plugin dir for the server.
|
|
|
|
-i, --plugin-ini=name
|
|
|
|
Read plugin information from configuration file specified
|
|
|
|
instead of from <plugin-dir>/<plugin_name>.ini.
|
|
|
|
-n, --no-defaults Do not read values from configuration file.
|
|
|
|
-P, --print-defaults
|
|
|
|
Show default values from configuration file.
|
|
|
|
-v, --verbose More verbose output; you can use this multiple times to
|
|
|
|
get even more verbose output.
|
|
|
|
-V, --version Output version information and exit.
|
|
|
|
|
|
|
|
|
2011-07-19 16:35:03 +02:00
|
|
|
mysql_plugin Ver V.V.VV Distrib XX.XX.XX
|