MySQL 5.1 リファレンスマニュアル :: 25 Extending MySQL :: 25.2 The MySQL Plugin Interface :: 25.2.5 Writing Plugins
« 25.2.4 UNINSTALL PLUGIN Syntax

25.2.5.1 General Plugin Structures and Functions »
Section Navigation      [Toggle]
  • 25.2 The MySQL Plugin Interface
  • 25.2.1 Characteristics of the Plugin Interface
  • 25.2.2 Full-Text Parser Plugins
  • 25.2.3 INSTALL PLUGIN Syntax
  • 25.2.4 UNINSTALL PLUGIN Syntax
  • 25.2.5 Writing Plugins
    • 25.2.5.1 General Plugin Structures and Functions
    • 25.2.5.2 Type-Specific Plugin Structures and Functions
    • 25.2.5.3 Creating a Plugin Library

25.2.5. Writing Plugins

[+/-]

25.2.5.1. General Plugin Structures and Functions
25.2.5.2. Type-Specific Plugin Structures and Functions
25.2.5.3. Creating a Plugin Library

This section describes the general and type-specific parts of the plugin API. It also provides a step-by-step guide to creating a plugin library. For example plugin source code, see the plugin/fulltext directory of a MySQL source distribution.

You can write plugins in C or C++ (or another language that can use C calling conventions). Plugins are loaded and unloaded dynamically, so your operating system must support dynamic loading and you must have compiled mysqld dynamically (not statically).

A plugin contains code that becomes part of the running server, so when you write a plugin, you are bound by any and all constraints that otherwise apply to writing server code. For example, you may have problems if you attempt to use functions from the libstdc++ library. These constraints may change in future versions of the server, so it is possible that server upgrades will require revisions to plugins that were originally written for older servers. For information about these constraints, see 項2.9.2. 「典型的な configure オプション」, and 項2.9.4. 「MySQL のコンパイルに関する問題」.

Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates