filter_mysqlbinlog command not found

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

Introduction

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

filter_mysqlbinlog: command not found

or when using sudo you get the following error message

sudo: filter_mysqlbinlog: command not found

Solutions to filter_mysqlbinlog: command not found

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

In Ubuntu filter_mysqlbinlog is provided by mha4mysql-node package.

mha4mysql-node 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-node

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

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

sudo apt -y install mha4mysql-node

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

sudo aptitude install mha4mysql-node

Summary

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