Book Image

MariaDB Cookbook

By : Daniel Bartholomew
Book Image

MariaDB Cookbook

By: Daniel Bartholomew

Overview of this book

Table of Contents (20 chapters)
MariaDB Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing the libhsclient library


The libhsclient library is what client libraries use to talk to HandlerSocket. This library is not included with MariaDB; so, we need to either install it from our Linux distribution's package repositories or build and install it ourselves.

Getting ready

Install and configure the HandlerSocket plugin as described in the Installing and configuring HandlerSocket recipe earlier in this chapter. In order to build the libhsclient library, we need to have some development tools and packages installed.

On Red Hat, Fedora, or CentOS, run the following command to install the necessary tools:

sudo yum install make gcc-c++

On Debian or Ubuntu, run the following command to install the necessary tools:

sudo apt-get install make g++

We are now ready to build and install the libhsclient libraries.

How to do it...

  1. Download the latest HandlerSocket source file as follows:

    wget \
    https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL/archive/master.tar.gz
    
  2. Change to the /usr/local...