save_binary_logs command not found

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

Introduction

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

save_binary_logs: command not found

or when using sudo you get the following error message

sudo: save_binary_logs: command not found

Solutions to save_binary_logs: command not found

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

In Ubuntu save_binary_logs 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 save_binary_logs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.