Rechercher dans le manuel MySQL
29.2.3 Plugin API Components
The server plugin implementation comprises several components.
SQL statements:
INSTALL PLUGIN
registers a plugin in themysql.plugin
table and loads the plugin code.UNINSTALL PLUGIN
unregisters a plugin from themysql.plugin
table and unloads the plugin code.The
WITH PARSER
clause for full-text index creation associates a full-text parser plugin with a givenFULLTEXT
index.SHOW PLUGINS
displays information about server plugins.
Command-line options and system variables:
The
--plugin-load
option enables plugins to be loaded at server startup time.The
plugin_dir
system variable indicates the location of the directory where all plugins must be installed. The value of this variable can be specified at server startup with a--plugin_dir=
option. mysql_config --plugindir displays the default plugin directory path name.dir_name
For additional information about plugin loading, see Section 5.6.1, “Installing and Uninstalling Plugins”.
Plugin-related tables:
The
INFORMATION_SCHEMA.PLUGINS
table contains plugin information.The
mysql.plugin
table lists each plugin that was installed withINSTALL PLUGIN
and is required for plugin use. For new MySQL installations, this table is created during the installation process.
The client plugin implementation is simpler:
For the
mysql_options()
C API function, theMYSQL_DEFAULT_AUTH
andMYSQL_PLUGIN_DIR
options enable client programs to load authentication plugins.There are C API functions that enable management of client plugins.
To examine how MySQL implements plugins, consult the following source files in a MySQL source distribution:
In the
include/mysql
directory,plugin.h
exposes the public plugin API. This file should be examined by anyone who wants to write a plugin library.plugin_
files provide additional information that pertains to specific types of plugins.xxx
.hclient_plugin.h
contains information specific to client plugins.In the
sql
directory,sql_plugin.h
andsql_plugin.cc
comprise the internal plugin implementation.sql_acl.cc
is where the server uses authentication plugins. These files need not be consulted by plugin developers. They may be of interest for those who want to know more about how the server handles plugins.In the
sql-common
directory,client_plugin.h
implements the C API client plugin functions, andclient.c
implements client authentication support. These files need not be consulted by plugin developers. They may be of interest for those who want to know more about how the server handles plugins.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-plugin-api-components.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.