struct st_mysql_client_plugin *mysql_client_register_plugin(MYSQL *mysql, struct st_mysql_client_plugin *plugin)


Adds a plugin structure to the list of loaded plugins. An error occurs if the plugin is already loaded.

Specify the parameters as follows:

This function was added in MySQL 5.5.7.

Return Values

A pointer to the plugin for success. NULL if an error occurred.


To check for errors, call the mysql_error() or mysql_errno() function. See Section, “mysql_error()”, and Section, “mysql_errno()”.