How To Install mysql-connector-odbc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mysql-connector-odbc.x86_64 in Amazon Linux 2. mysql-connector-odbc.x86_64 is ODBC driver for MySQL

Introduction

In this tutorial we learn how to install mysql-connector-odbc.x86_64 on Amazon Linux 2.

What is mysql-connector-odbc.x86_64

An ODBC (rev 3) driver for MySQL, for use with unixODBC.

We can use yum to install mysql-connector-odbc.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mysql-connector-odbc.x86_64.

Install mysql-connector-odbc.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mysql-connector-odbc.x86_64 using yum by running the following command:

sudo yum -y install mysql-connector-odbc.x86_64

How To Uninstall mysql-connector-odbc.x86_64 on Amazon Linux 2

To uninstall only the mysql-connector-odbc.x86_64 package we can use the following command:

sudo yum remove mysql-connector-odbc.x86_64

mysql-connector-odbc.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libmyodbc5.so
/usr/lib64/libmyodbc5w.so
/usr/share/doc/mysql-connector-odbc-5.2.5
/usr/share/doc/mysql-connector-odbc-5.2.5/COPYING
/usr/share/doc/mysql-connector-odbc-5.2.5/ChangeLog
/usr/share/doc/mysql-connector-odbc-5.2.5/README
/usr/share/doc/mysql-connector-odbc-5.2.5/README.debug

References

Summary

In this tutorial we learn how to install mysql-connector-odbc.x86_64 on Amazon Linux 2 using yum.