MYSQL_PLUGIN(1) | MySQL Database System | MYSQL_PLUGIN(1) |
NAME¶
mysql_plugin - configure MySQL server pluginsSYNOPSIS¶
mysql_plugin
[ options] plugin
{ENABLE|DISABLE}
DESCRIPTION¶
The mysql_plugin utility enables MySQL administrators to manage which plugins a MySQL server loads. It provides an alternative to manually specifying the --plugin-load option at server startup or using the INSTALL PLUGIN and UNINSTALL PLUGIN statements at runtime. mysql_plugin is available as of MySQL 5.5.16. Depending on whether mysql_plugin is invoked to enable or disable plugins, it inserts or deletes rows in the mysql.plugin table that serves as a plugin registry. (To perform this operation, mysql_plugin invokes the MySQL server in bootstrap mode. This means that the server must not already be running.) For normal server startups, the server loads and enables plugins listed in mysql.plugin automatically. For additional control over plugin activation, use --plugin_name options named for specific plugins, as described in Section 5.1.8.1, “Installing and Uninstalling Plugins”. Each invocation of mysql_plugin reads a configuration file to determine how to configure the plugins contained in a single plugin library object file. To invoke mysql_plugin, use this syntax:mysql_plugin [ options] plugin {ENABLE|DISABLE}
myplugins plugin1 plugin2 plugin3
shell> mysql_plugin myplugins ENABLE
•--help, -?
Display a help message and exit.
•--basedir=dir_name,
-b dir_name
The server base directory.
•--datadir=dir_name,
-d dir_name
The server data directory.
•--my-print-defaults=file_name,
-b file_name
The path to the my_print_defaults program.
•--mysqld=file_name,
-b file_name
The path to the mysqld server.
•--no-defaults, -p
Do not read values from the configuration file. This option enables an
administrator to skip reading defaults from the configuration file.
With mysql_plugin, this option need not be given first on the command
line, unlike most other MySQL programs that support
--no-defaults.
•--plugin-dir=dir_name,
-p dir_name
The server plugin directory.
•--plugin-ini=file_name,
-i file_name
The mysql_plugin configuration file. Relative path names are interpreted
relative to the current directory. If this option is not given, the default is
plugin.ini in the plugin directory, where plugin is the
plugin argument on the command line.
•--print-defaults, -P
Display the default values from the configuration file. This option causes
mysql_plugin to print the defaults for --basedir,
--datadir, and --plugin-dir if they are found in the
configuration file. If no value for a variable is found, nothing is shown.
With mysql_plugin, this option need not be given first on the command
line, unlike most other MySQL programs that support
--print-defaults.
•--verbose, -v
Verbose mode. Print more information about what the program does. This option
can be used multiple times to increase the amount of information.
•--version, -V
Display version information and exit.
COPYRIGHT¶
Copyright © 1997, 2015, Oracle and/or its affiliates. All rights reserved. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.SEE ALSO¶
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/.AUTHOR¶
Oracle Corporation (http://dev.mysql.com/).11/06/2015 | MySQL 5.5 |