Odbc Mysql For Mac

Posted on  by 



To configure a DSN on macOS, you can either use the command-line utility (myodbc-installer), edit the odbc.ini file within the Library/ODBC directory of the user, or use the ODBC Administrator GUI.

Mysql

MySQL Connector/ODBC Developer Guide / Configuring Connector/ODBC / Configuring a Connector/ODBC DSN on macOS 5.4 Configuring a Connector/ODBC DSN on macOS To configure a DSN on macOS, you can either use the command-line utility ( myodbc-installer ), edit the odbc.ini file within the Library/ODBC directory of the user, or use the ODBC. To build Connector/ODBC from source on macOS, follow the same instructions given for Section 4.5, “Building Connector/ODBC from a Source Distribution on Unix”.Notice that iODBC is the default ODBC library used when building Connector/ODBC on macOS from source. Alternatively, unixODBC may be used by setting the option -DWITHUNIXODBC=1. Actual Technologies also makes a commercial ODBC driver for MySQL for Mac OS X that works with FileMaker Pro 6 or later. It has an installer, a DSN setup assistant, on-line help, and connection diagnostic tool. Instructions for configuring FMP to work with the driver can be found in the FAQ. A free, non-expiring evaluation version is available.

The ODBC Administrator is included in OS X v10.5 and earlier; users of later versions of OS X and macOS need to download and install it manually.

To create a DSN using the myodbc-installer utility, you only need to specify the DSN type and the DSN connection string. For example:

To use ODBC Administrator:

Odbc Mysql For Mac
  • For correct operation of ODBC Administrator, ensure that the /Library/ODBC/odbc.ini file used to set up ODBC connectivity and DSNs are writable by the admin group. If this file is not writable by this group, then the ODBC Administrator may fail, or may appear to work but not generate the correct entry.

  • There are known issues with the macOS ODBC Administrator and Connector/ODBC that may prevent you from creating a DSN using this method. In that case, use the command line or edit the odbc.ini file directly. Existing DSNs or those that you created using the myodbc-installer tool can still be checked and edited using ODBC Administrator.

  1. Open the ODBC Administrator from the Utilities folder in the Applications folder.

    Figure 5.7 ODBC Administrator Dialog


  2. From the ODBC Administrator dialog, choose either the User DSN or System DSN tab and click .

  3. Select the Connector/ODBC driver and click .

  4. You will be presented with the Data Source Name (DSN) dialog. Enter the Data Source Name and an optional Description for the DSN.

    Figure 5.8 ODBC Administrator Data Source Name Dialog


  5. Click to add a new keyword/value pair to the panel. Configure at least four pairs to specify the server, username, password and database connection parameters. See Section 5.5.2, “Connector/ODBC Connection Parameters”.

  6. Click to add the DSN to the list of configured data source names.

A completed DSN configuration may look like this:

Figure 5.9 ODBC Administrator Sample DSN Dialog


Mysql Odbc Driver For Mac Excel

You can configure other ODBC options in your DSN by adding further keyword/value pairs and setting the corresponding values. See Section 5.5.2, “Connector/ODBC Connection Parameters”.

To configure a DSN on macOS, you can either use the command-line utility (myodbc-installer), edit the odbc.ini file within the Library/ODBC directory of the user, or use the ODBC Administrator GUI.

The ODBC Administrator is included in OS X v10.5 and earlier; users of later versions of OS X and macOS need to download and install it manually.

To create a DSN using the myodbc-installer utility, you only need to specify the DSN type and the DSN connection string. For example:

Odbc

To use ODBC Administrator:

Mac
  • For correct operation of ODBC Administrator, ensure that the /Library/ODBC/odbc.ini file used to set up ODBC connectivity and DSNs are writable by the admin group. If this file is not writable by this group, then the ODBC Administrator may fail, or may appear to work but not generate the correct entry.

  • There are known issues with the macOS ODBC Administrator and Connector/ODBC that may prevent you from creating a DSN using this method. In that case, use the command line or edit the odbc.ini file directly. Existing DSNs or those that you created using the myodbc-installer tool can still be checked and edited using ODBC Administrator.

Mysql

Odbc Mysql For Mac Shortcut

  1. Open the ODBC Administrator from the Utilities folder in the Applications folder.

    Figure 5.6 ODBC Administrator Dialog


  2. From the ODBC Administrator dialog, choose either the User DSN or System DSN tab and click .

  3. Select the Connector/ODBC driver and click .

  4. You will be presented with the Data Source Name (DSN) dialog. Enter the Data Source Name and an optional Description for the DSN.

    Figure 5.7 ODBC Administrator Data Source Name Dialog


  5. Click to add a new keyword/value pair to the panel. Configure at least four pairs to specify the server, username, password and database connection parameters. See Section 5.2, “Connector/ODBC Connection Parameters”.

  6. Click to add the DSN to the list of configured data source names.

A completed DSN configuration may look like this:

Figure 5.8 ODBC Administrator Sample DSN Dialog


You can configure other ODBC options in your DSN by adding further keyword/value pairs and setting the corresponding values. See Section 5.2, “Connector/ODBC Connection Parameters”.





Coments are closed