create_plugin_syntax.rst 558 B

12345678910111213141516171819202122232425262728
  1. .. _create_plugin_syntax:
  2. CREATE PLUGIN syntax
  3. --------------------
  4. .. code-block:: mysql
  5. CREATE PLUGIN plugin_name TYPE 'plugin_type' SONAME 'plugin_library'
  6. Loads the given library (if it is not loaded yet) and loads the
  7. specified plugin from it. The known plugin types are:
  8. - ranker
  9. - index_token_filter
  10. - query_token_filter
  11. Refer to :ref:`plugins`
  12. for more information regarding writing the plugins.
  13. .. code-block:: mysql
  14. mysql> CREATE PLUGIN myranker TYPE 'ranker' SONAME 'myplugins.so';
  15. Query OK, 0 rows affected (0.00 sec)