MySQL 9.5 C API Developer Guide / C API Client Plugin Interface
Table of Contents
This section describes functions used for the client-side plugin API. They enable management of client plugins. For a description of thest_mysql_client_plugin structure used by these functions, seeClient 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 callingmysql_options() to set theMYSQL_DEFAULT_AUTH andMYSQL_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.