There are two methods available for installing Connector/ODBC on Unix from a binary distribution. For most Unix environments, you will use the tarball distribution. For Linux systems, there is also an RPM distribution available.
To install Connector/ODBC 5.x on Unix requires unixODBC 2.2.12 or later to be installed.
To install the driver from a tarball distribution
.tar.gz file), download the latest
version of the driver for your operating system and follow
these steps that demonstrate the process using the Linux
version of the tarball, substituting the appropriate file and
directory names based on the package you download:
tar xvf mysql-connector-odbc-5.2.2-i686-pc-linux.tarshell>
Read the installation instructions in the
INSTALL file and execute these commands.
Section 220.127.116.11, “Configuring a Connector/ODBC DSN on Unix” to
configure the DSN for Connector/ODBC. For more information,
refer to the
INSTALL file that comes with
To install or upgrade Connector/ODBC from an RPM distribution
on Linux, simply download the RPM distribution of the latest
version of Connector/ODBC and follow the instructions below.
Use su root to become
root, then install the RPM file.
If you are installing for the first time:
rpm -ivh mysql-connector-odbc-5.2.2.i386.rpm
If the driver exists, upgrade it like this:
rpm -Uvh mysql-connector-odbc-5.2.2.i386.rpm
If there is any dependency error for MySQL client library,
libmysqlclient, simply ignore it by
--nodeps option, and then make
sure the MySQL client shared library is in the path or set
This installs the driver libraries and related documents to
/usr/share/doc/MyODBC, respectively. See
Section 18.104.22.168, “Configuring a Connector/ODBC DSN on Unix” for
the post-installation configuration steps.
To uninstall the driver,
root and execute an
rpm -e mysql-connector-odbc