MariaDB is a drop in replacement for MySQL because it is a scalable, robust and reliable SQL server that comes rich set of enhancements.
Replication is the process of copying database automatically from master to slave server. If one server goes down, then you can still access the data from second server.
You can easily solve a number of problems with performance and backup using master slave replication. You can also split up the load of database queries across multiple database servers.
In this tutorial, we will learn how to configure MariaDB master slave replication between two Ubuntu 16.04 host.
Two servers running Ubuntu 16.04.
Static IP address 192.168.15.237 configured on master server.
Static IP address 192.168.15.100 configured on slave server.
A non-root user with sudo privileges configure on both server.
Before starting, you will need to update the system with the latest version. You can do this by runnng the following command:
sudo apt-get update -ysudo apt-get upgrade -y
Once your system is up to date, you can proceed to next step.
First, you will need to install the latest version of MariaDB database server on both master and slave server.
You can install MariaDB server easily using the following command:
sudo apt-get install mariadb-server
Once MariaDb is installed, you will need to secure it first, because default MariaDB installation is not secure.
You can secure it by running the mysql_secure_installation script on both master and slave server.
The above script will ask you to set a root password for your MariaDB installation, remove default test database and remove anonymous users.
Answer each questions carefully.
Once MariaDb installation is secured, start MariaDB service and let it to start automatically on every reboot by running the following command:
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...
You may sometimes need to manually adjust the PHP settings on your cPanel server – for example if a site is hitting the PHP memory, or file size upload limit. WHM allows you to quickly change the settings of any PHP version installed on the server when needed, using the...