mysql_client_find_plugin

Syntax

#include <mysql.h>
struct st_mysql_client_plugin * 
mysql_client_find_plugin(MYSQL *mysql, const char *name, int type);

Parameters

  • mysql is a connection identifier, which was previously initialized by mysql_init() and optional connected by mysql_real_connect().

  • name The name of the plugin.

  • type The plugin type.

Valid Plugin Types

  • MYSQL_CLIENT_AUTHENTICATION_PLUGIN

  • MARIADB_CLIENT_PVIO_PLUGIN

  • MARIADB_CLIENT_REMOTEIO_PLUGIN

  • MARIADB_CLIENT_CONNECTION_PLUGIN or MARIADB_CLIENT_COMPRESSION_PLUGIN.

Return Value

A pointer to the plugin handle, or NULL if an error occurred.

If the type of the plugin is not known, -1 needs to be specified for parameter type.

See Also

Last updated

Was this helpful?