mysql-schema-diff command not found

In this troubleshooting guide we learn how to fix mysql-schema-diff command not found error message

Introduction

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

mysql-schema-diff: command not found

or when using sudo you get the following error message

sudo: mysql-schema-diff: command not found

Solutions to mysql-schema-diff: command not found

How To Fix mysql-schema-diff: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mysql-schema-diff is provided by libmysql-diff-perl package.

libmysql-diff-perl is:

MySQL::Diff is suite of Perl modules and accompanying CLI script for comparing the schema (table structures) of two MySQL databases.

The package also contains the mysql-schema-diff script.

For further mysql helper scripts mysql-utilities might be interesting.

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

sudo apt-get -y install libmysql-diff-perl

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

You can also use apt command to install libmysql-diff-perl.

sudo apt -y install libmysql-diff-perl

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

sudo aptitude install libmysql-diff-perl

Summary

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