Mysql Dsn Driver For Mac
macOS is based on the FreeBSD operating system, and you can normally use the MySQL network port for connecting to MySQL servers on other hosts. Installing the Connector/ODBC driver lets you connect to MySQL databases on any platform through the ODBC interface. If your application requires an ODBC interface, install the Connector/ODBC driver.
On macOS, the ODBC Administrator, based on the iODBC
manager, provides easy administration of ODBC drivers and configuration, allowing the updates of the underlying iODBC
configuration files through a GUI tool. The tool is included in macOS v10.5 and earlier; users of later versions of macOS need to download it from http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads and install it manually.
Hi, I have installed the ODBC 5.1.6 connector for Mac OS X and successfully tested a new DSN with our MySQL database. When I try to do Get External Data from MS Excel 2008, I get 'No ODBC driver is installed' and a link to a number of purchasable third-party drivers from Openlink Software and Actual Technologies. Description: installing the odbc driver on mac using the.dmg file downloaded from the website will not work for the following reason: the content of the.pkg file contains a postflight script named 'postflight.in.cmake', this file is not loaded during the installation. Renaming the file to 'postflight' will load the script however it will fail on the 'create sample dsn' step.
OpenSSL is a required dependency. The macOS installation binaries bundle OpenSSL, while the compressed tar archives do not and require that you install OpenSSL on your system before the installation process.
There are two ways to install Connector/ODBC on macOS. You can use either the package provided in a compressed tar archive that you manually install, or use a compressed disk image (.dmg
) file, which includes an installer.
To install using the compressed tar archive (some of the steps below might require superuser privileges):
Download the compressed tar archive.
Extract the archive:
The directory created contains two subdirectories,
lib
andbin
. Copy these to a suitable location such as/usr/local
:Finally, register the driver with iODBC using the myodbc-installer tool that was included in the package:
For Connector/ODBC 8.0:
For Connector/ODBC 5.3:
To install using the a compressed disk image (.dmg
) file:
iODBC 3.52.12 or later must be installed on the macOS system before you can install Connector/ODBC using a compressed disk image. See Section 4.3, “Installing Connector/ODBC on macOS”.
Download the disk image.
Double click the disk image to open it. You see the Connector/ODBC installer inside.
Double click the Connector/ODBC installer, and you will be guided through the rest of the installation process. You need superuser privileges to finish the installation.
To verify the installed drivers, either use the ODBC Administrator application or the myodbc-installer utility:
The OpenLink ODBC Driver for MySQL (Express Edition) isdistributed as a Disk image (DMG) file. Simply double click on thedisk image 'mul6emys.dmg' to extract the installer mpkg file:
Figure 7.1. ee-mys-00.png
Double-click on the mpkg file to run the installer. Follow theon-screen instructions as indicated below to complete theinstallation:
Figure 7.2. ee-mys-01.png
When prompted, permit the verification script to run. Thissimply checks to see that you are running a version of Mac OS Xlater than 10.3.0:
Figure 7.3. ee-mys-02.png
Review the Welcomemessage to confirm you're installing the right driver:
Figure 7.4. ee-mys-03.png
Review the ReadMe forinstallation requirements and any known issues:
Figure 7.5. ee-mys-04.png
Please read and agree to the SoftwareLicense Agreement before continuing yourinstallation:
Figure 7.6. ee-mys-05.png
Figure 7.7. ee-mys-06.png
Select the destination volume for driver installation:
Figure 7.8. ee-mys-07.png
Accept the default installation of the driver, or clickCustomize to select specificcomponents for installation:
Figure 7.9. ee-mys-08.png
Select the components to be installed, or click Easy Install to return to thedefault:
Figure 7.10. ee-mys-09.png
The Software must be installed as a user with Administrativeprivileges on the machine. When prompted, provide a relevantusername and password:
Figure 7.11. ee-mys-10.png
Installation will proceed.
Figure 7.12. ee-mys-11.png
During installation, you will be prompted to select a licensefile for the driver. If such a license file already exists on themachine, then select the 'use existing file' option.
Figure 7.13. ee-mys-15.png
If you accidentally clicked this option, you can cancel out ofthe selection dialog. As the following alert will explain, you canmanually apply the license file at any point in the future:
Figure 7.14. ee-mys-16.png
A trial or permanent license may be obtained by selecting theTry and Buy option whichloads our online try and buy web page:
Figure 7.15. ee-mys-12.png
A permanent license may be obtained by clicking on the 'Shop'link to visit our online store, or you may obtain a trial licenseby registering with and logging in to the OpenLink Web site:
Figure 7.16. ee-mys-13.png
Click on the 'Download License' button to immediately obtain anevaluation license file; it will be saved to your Browser'sdownload folder (which typically defaults to your desktop). Amessage will also be sent to your email address with a link to yourOpenLink Data Space (ODS) Briefcase, where all non-expired trialand full license files will be stored for download at yourconvenience.
Figure 7.17. ee-mys-14.png
Close the browser, and proceed as if you had selected the optionto use existing file. Selectthe license file to be used for the installation:
Golang Mysql Dsn
Figure 7.18. ee-mys-15.png
Installation is now complete, and you can exit the Installer andproceed to configure a DSN:
Figure 7.19. ee-mys-17.png