You are viewing an old version of this article. View the current version here.
Beginning with MariaDB 5.3.0, the HandlerSocket plugin is included in both source and binary distributions. After MariaDB is installed, use the INSTALL PLUGIN command (as the root user) to install the HandlerSocket plugin. This command only needs to be run once, like so:
MariaDB [(none)]> INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
After installing the plugin, SHOW PROCESSLIST will show the HandlerSocket worker threads.
On the client side, to make use of the plugin you will need to install the appropriate client library (i.e. libhsclient for C++ applications and perl-Net-HandlerSocket for perl applications, both available from the HandlerSocket website).
HandlerSocket configuration options should be placed in the [mysqld] section of your my.cnf file.
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.