mysql2dbf command not found

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

Introduction

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

mysql2dbf: command not found

or when using sudo you get the following error message

sudo: mysql2dbf: command not found

Solutions to mysql2dbf: command not found

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

In Ubuntu mysql2dbf is provided by dbf2mysql package.

dbf2mysql is:

This program takes an xBase file and sends queries to an MySQL server to insert it into an MySQL table and vice versa.

This package now consists of two programs: the dbf2mysql, and mysql2dbf, which makes it possible to dump an mySQL-table to a dbf-file.

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

sudo apt-get -y install dbf2mysql

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

You can also use apt command to install dbf2mysql.

sudo apt -y install dbf2mysql

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

sudo aptitude install dbf2mysql

Summary

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