DROP FUNCTION

  1. DROP FUNCTION udf_name

DROP FUNCTION statement deinstalls a `user-defined function UDF with the given name. On success, the function is no longer available for use in subsequent queries. Pending concurrent queries will not be affected and the library unload, if necessary, will be postponed until those queries complete. Example:

  1. mysql> DROP FUNCTION avgmva;
  2. Query OK, 0 rows affected (0.00 sec)

Plugins

CREATE PLUGIN

  1. CREATE PLUGIN plugin_name TYPE 'plugin_type' SONAME 'plugin_library'

Loads the given library (if it is not loaded yet) and loads the specified plugin from it. The known plugin types are:

  • ranker
  • index_token_filter
  • query_token_filter

Refer to plugins for more information regarding writing the plugins.

  1. mysql> CREATE PLUGIN myranker TYPE 'ranker' SONAME 'myplugins.so';
  2. Query OK, 0 rows affected (0.00 sec)