10bet网址
Connectors and APIs Manual
Download this Manual
PDF (US Ltr)- 5.2Mb
PDF (A4)- 5.2Mb


5.4 Connector/ODBC Installation

This section explains where to download Connector/ODBC, and how to run the installer, copy the files manually, or build from source.

Where to Get Connector/ODBC

You can get a copy of the latest version of Connector/ODBC binaries and sources from our website at//www.delbede.com/downloads//connector/odbc/.

Choosing Binary or Source Installation Method

You can install the Connector/ODBC drivers using two different methods:

  • Thebinary installationis the easiest and most straightforward method of installation. You receive all the necessary libraries and other files pre-built, with an installer program or batch script to perform all necessary copying and configuration.

  • Thesource installationmethod is intended for platforms where a binary installation package is not available, or in situations where you want to customize or modify the installation process or Connector/ODBC drivers before installation.

    If a binary distribution is not available for a particular platform, and you build the driver from the original source code.

Connector/ODBC binary distributions include anINFO_BINfile that describes the environment and configuration options used to build the distribution. If you installed Connector/ODBC from a binary distribution and experience build-related issues on a platform, it may help to check the settings that were used to build the distribution on that platform. Binary and source distributions include anINFO_SRCfile that provides information about the product version and the source repository from which the distribution was produced. This information was added in Connector/ODBC 8.0.14.

Supported Platforms

Connector/ODBC can be used on all major platforms supported by MySQL according tohttps://www.mysql.com/en/support/supportedplatforms/database.html. This includes Windows, most Unix-like operation systems, and macOS.

Note

On all non-Windows platforms except macOS, the driver is built againstunixODBCand is expecting a 2-byteSQLWCHAR, not 4 bytes asiODBCis using. For this reason, the binaries areonlycompatible withunixODBC; recompile the driver againstiODBCto use them together. For further information, seeSection 5.3.2, “ODBC Driver Managers”.

For further instructions, consult the documentation corresponding to the platform where you are installing and whether you are running a binary installer or building from source:

Platform Binary Installer Build from Source
Windows Installation Instructions Build Instructions
Unix/Linux Installation Instructions Build Instructions
macOS Installation Instructions

Choosing Unicode or ANSI Driver

Connector/ODBC offers the flexibility to handle data using any character set through itsUnicode-enableddriver, or the maximum raw speed for a more limited range of character sets through itsANSIdriver. Both kinds of drivers are provided in the same download package, and are both installed onto your systems by the installation program or script that comes with the download package. Users who install Connector/ODBC and register it to the ODBC manager manually can choose to install and register either one or both of the drivers; the different drivers are identified by aw(forwide characters) for the Unicode driver andafor the ANSI driver at the end of the library names. For example,myodbc8w.dllversusmyodbc8a.dll, orlibmyodbc8w.soversuslibmyodbc8a.so.

Note

Related: The previously described file names contain an "8", such asmyodbc8a.dll, which means they are for Connector/ODBC 8.x. File names with a "5", such asmyodbc5a.dll, are for Connector/ODBC 5.x.