Skip to content

How to install a MySQL cluster on a single UNIX/Linux server

In this tutorial I will show you how to install a MySQL cluster on a single node: obviously you will not gain any hardware redundancy with this setup but it is useful if you need to create a test installation as it was for me. You can find many tutorials about this topic but they are quite old and MySQL Cluster changed a lot in last years.

What is a MySQL cluster?

Let’s start explaining the architecture of a MySQL cluster with an image taken from dev.mysql.com:

MySQL cluster architecture

As you may see the MySQL cluster is an aggregation of many components:

  • one management server;
  • many MySQL daemons that acts as “frontend”;
  • many data nodes that store the real data.

This tutorial will guide you in the creation of a cluster with:

  • one management node;
  • two MySQL daemons;
  • two data nodes.

Obviously you can expand this configuration simply adding the components you need. As stated at the beginning of this tutorial you can create all this setup on a single server (well you need 3 IPs on the server) or, and that would be very easy, you can split the MySQL cluster components on many servers.

    AddThis Feed Button

2 Comments

  1. Karuna

    Hi,
    Thanks a lot. This demonstration is very useful to me and it is working fine. I have installed and tested the mysql clusters in my single linux machine.

    Very useful……………….. :)

    Posted on 30-Oct-08 at 12:40 pm | Permalink
  2. Hi Karuna,

    many thanks for your feedback: I tried all these steps for a clean installation but I’m also the writer of this tutorial ;)

    Bye
    Apiero

    Posted on 04-Nov-08 at 4:48 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*