Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 880

How To Set Up a Multi-node MySQL Replication Cluster on Ubuntu 18.04

$
0
0

Database clustering is particularly useful for highly active website and application. With replication, at least two or more MySQL servers act as a cluster. MySQL multi-node circular replication adds speed and redundancy. 

This tutorial is written for Ubuntu 18.04.4, 19.04, 19.10 or Debian 9 using a non-root user, which means commands that require elevated privileges are prefixed with sudo. 

We will use following three servers to configure MySQL database multi-node circular replication cluster using HAProxy and Heartbeat.

HOSTNAMEIP ADDRESSPURPOSE
dbserver1192.168.10.1MySQL
dbserver2192.168.10.2MySQL
dbserver3192.168.10.3MySQL


If you wish you can watch below video tutorial to set up your replication cluster quickly.



Prerequisites

You will need three (physical or virtual) machines with Ubuntu 18.04.4 server installed on each machine having sudo non-root user privileges. When you have prerequisites in place, please follow this step by step tutorial to set up a multi-node MySQL replication cluster for your production environment.

Viewing all articles
Browse latest Browse all 880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>