masterha_manager command not found

In this troubleshooting guide we learn how to fix masterha_manager command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

masterha_manager: command not found

or when using sudo you get the following error message

sudo: masterha_manager: command not found

Solutions to masterha_manager: command not found

How To Fix masterha_manager: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu masterha_manager is provided by mha4mysql-manager package.

mha4mysql-manager is:

MHA performs automating master failover and slave promotion with minimal downtime, usually within 10-30 seconds. MHA prevents replication consistency problems and saves on expenses of having to acquire additional servers.

All this with zero performance degradation, no complexity (easy-to-install) and requiring no change to existing deployments.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mha4mysql-manager

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mha4mysql-manager.

sudo apt -y install mha4mysql-manager

Or if you have aptitude installed you can use the following command.

sudo aptitude install mha4mysql-manager

Summary

In this tutorial we learn how to fix masterha_manager command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.