Rechercher dans le manuel MySQL
28.7.17 C API Client Plugin Functions
[+/-]
This section describes functions used for the client-side plugin
API. They enable management of client plugins. For a description
of the st_mysql_client_plugin
structure used by
these functions, see Section 29.2.4.2.3, “Client Plugin Descriptors”.
It is unlikely that a client program needs to call the functions
in this section. For example, a client that supports the use of
authentication plugins normally causes a plugin to be loaded by
calling mysql_options()
to set the
MYSQL_DEFAULT_AUTH
and
MYSQL_PLUGIN_DIR
options:
char *plugin_dir = "path_to_plugin_dir";
char *default_auth = "plugin_name";
/* ... process command-line options ... */
mysql_options(&mysql, MYSQL_PLUGIN_DIR, plugin_dir);
mysql_options(&mysql, MYSQL_DEFAULT_AUTH, default_auth);
Typically, the program will also accept
--plugin-dir
and --default-auth
options that enable users to override the default values.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-c-api-plugin-functions.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.