Install Connector/ODBC
This page is part of MariaDB's Documentation.
The parent of this page is: MariaDB Connector/ODBC
Topics on this page:
Overview
MariaDB Connector/ODBC is available as a binary tarball for Linux distributions, as an MSI for Microsoft Windows operating systems, and as a PKG for Apple macOS.
Linux (Binary Tarball)
Go to the MariaDB Connector/ODBC download page.
In the "OS" dropdown, select your distribution of Linux.
Click the "Download" button to download the file.
Extract the tarball:
$ tar -xvzf mariadb-connector-odbc-*.tar.gz
Change directory to the root directory of the extracted files.
$ cd mariadb-connector-odbc-*
Install the library:
On CentOS, RHEL, and Rocky Linux:
$ sudo install lib/mariadb/libmaodbc.so /usr/lib64/ $ sudo install -d /usr/lib64/mariadb/ $ sudo install -d /usr/lib64/mariadb/plugin/ $ sudo install lib64/mariadb/plugin/* /usr/lib64/mariadb/plugin/
On Debian / Ubuntu:
$ sudo install lib/mariadb/libmaodbc.so /usr/lib/ $ sudo install -d /usr/lib/mariadb/ $ sudo install -d /usr/lib/mariadb/plugin/ $ sudo install lib/mariadb/plugin/* /usr/lib/mariadb/plugin/
Install a driver manager.
Windows (MSI)
MariaDB Connector/ODBC Windows Installer requires Windows 8 or newer operating system.
Go to the MariaDB Connector/ODBC download page.
In the "OS" dropdown, select "MS Windows 64-bit" or "MS Windows 32-bit," depending on whether you need a 64-bit or 32-bit library.
Click the "Download" button to download the MSI package.
Run the MSI package and click "Next" to start the Setup Wizard.
On the second screen, click the license agreement checkbox, then click "Next."
On the third screen, click "Typical."
On the fourth screen, click "Install."
Then, click "Finish."
macOS (PKG)
Go to the MariaDB Connector/ODBC download page.
In the "OS" dropdown, select "macOS."
Click the "Download" button to download the PKG package.
Run the PKG package to install.
Install a driver manager.
Driver Managers
MariaDB Connector/ODBC requires a driver manager to provide the application interface for ODBC connections. The specific driver manager varies by operating system.
Operating System | Driver Manager | Requires Installation |
---|---|---|
Linux | unixODBC | Yes |
Windows | No | |
macOS | iODBC | Yes |
Install unixODBC on CentOS / RHEL / Rocky Linux (via YUM)
Install unixODBC using YUM:
$ sudo yum install unixODBC
Install unixODBC on Debian / Ubuntu (via APT)
Install unixODBC using APT:
$ sudo apt update $ sudo apt install unixodbc
Install unixODBC on SLES (via ZYpp)
Install unixODBC using ZYpp:
$ sudo zypper install unixODBC
Install iODBC on macOS
Go to iODBC.org:
http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads
Download the disk image for iODBC.
Install the disk image.