Before you set up the plugin and the internal tables, verify that your server has the required prerequisite software.
Currently, the memcached Daemon Plugin is only supported on Linux, Solaris, and OS X platforms.
You must have
libevent installed, since it is
required by memcached. The way to get this
library is different if you use the MySQL installer or build
from source, as described in the following sections.
When you use a MySQL installer, the
library is not included. Use the particular method for your
operating system to download and install
libevent 1.4.3 or later: for example,
depending on the operating system, you might use the command
port install. For example, on Ubuntu Linux:
sudo apt-get install libevent-dev
The libraries for memcached and the
InnoDB plugin for
memcached are put into the right place by the
MySQL installer. For typical operation, the files
lib/plugin/innodb_engine.so are used.
For a brief introduction on the setup steps, see the file
README-innodb_memcached in the source
This is a more detailed explanation of that procedure.
If you have the source code release,
1.4.3 is bundled with the package and is located at the top
level of the MySQL source code directory. The bundled version of
libevent is used unless you direct the build
to use a local system version of
When you build MySQL server, build with
will generate two shared libraries in the MySQL plugin directory
that are required to run
memcached daemon plugin to MySQL.
InnoDB API plugin to
The memcached daemon can sometimes cause the MySQL server to exceed the OS limit on the number of open files. You might need to run the ulimit command to increase the limit, and then start the MySQL server from that same shell. See Section 14.18.8, “Troubleshooting the InnoDB memcached Plugin” for the steps to resolve this issue.