One of the more exciting new features in MySQL 5.6 is the InnoDB to Memcached interface. Basically memcached runs as a daemon plugin and can bypass the SQL optimizer and parser for NoSQL access.
The first step is to download the new MySQL 5.6 with the InnoDB-Memcache preview. Sorry, Linux only at this time. And install memcached.
Second, run the provided configuration script mysql> < scripts/innodb_memcached_config.sql. This will do a lot of the work to get things running out of the box and one of the links below details what is happening behind the scenes when you run the script. Third, load the plugin mysql> install plugin daemon_memcached soname “libmemcached.so”;. Forth, to make sure we can see recently inserted data, you will need to set the transaction level mysql> set session TRANSACTION ISOLATION LEVEL read uncommitted;
Fifth step, feed some data into the provided InnoDB demo table mysql> INSERT INTO demo_test VALUES ('dave','it works', 10, 200, NULL).
Now, can we get memcached to get the data from InnoDB?
Yes! This is a very simple example using the ‘canned’ configuration. Your mileage may vary and this server is a preview and not for production. But there is a lot more stuff in there that I will be looking into soon.
- Please also read the following before you start. The above is a quick look at this new feature and the following provide some juicy details you will want to know before testing on your own.
- NoSQL to InnoDB with Memcached
- Get started with InnoDB Memcached Daemon plugin
- Not only SQL – memcache and MySQL 5.6


Pingback: MySQL 5.6 — InnoDB and Memcached | Database, MySql, Oracle, SQL and more
Hi
Good job on the article which is well written.
This is a great blog!
I definitely clicked the ‘Like’ button.
Feel free to visit my blog too, over at http://geekleague.wordpress.com.
Greetings
Geek League
Why is it required to use READ_UNCOMMITTED?
If using READ_COMMITTED, will I not see any committed transaction’s result?
I set it to READ_UNCOMMITTED to see what I hoped was a best case for speed could be. But I am not seeing any difference between READ_COMMITTED and READ_UNCOMMITTED; that is probably the fault of my testing procedures.
It’s works with the actual versions (mysql-5.6.6-labs-june-2012-winx64.zip) also? From where do you get the libmemcached.so? I can’t find it also in the linux version. any idea?
It is in the Linux version but I am not sure if it is support with Windows. Let me check and get back to you.