Odbc Manager For Mac Mojave

Before configuring an ODBC driver on a Mac, you will need to download and install a Driver Manager, iODBC. Refer to your System Requirements documentation for iODBC versions compatible with your ODBC Driver:

Install the Microsoft ODBC driver on the Mac. The procedure and screenshots in this section are from macOS Mojave — and may differ somewhat if you are using a different version of macOS. We need to use unixODBC because the default Apple driver manager does not work with some databases. The sources for the iODBC Driver Manager are available for download or by checkout from Github, or for download as a tarball on SourceForge; you can also read the ChangeLog. Mac OS X builds of 3.52.10. This package contains iODBC as a Framework plus the GUI iODBC Administrator.app and bindings for Microsoft Office.

iODBC can be downloaded from iODBC.org.

For this example, we are using version 3.52.12.

  • MacOS Mojave (/ m oʊ ˈ h ɑː v i, m ə-/ mo-HAH-vee) (version 10.14) is the fifteenth major release of macOS, Apple Inc.' S desktop operating system for Macintosh computers. Mojave was announced at Apple's Worldwide Developers Conference on June 4, 2018, and was released to the public on September 24, 2018. The operating system's name refers to the Mojave Desert and is part of a series of.
  • OpenLink's Darwin client installer provides the iODBC driver manager. Users may also encounter unixODBC, mac:ODBC, and other driver managers. Mac Classic a/k/a Mac OS 9: OpenLink's Mac Classic client installer provides its own driver manager for this platform.
  • Dec 19, 2018  Mojave was released just a month before and many hackintosher are willing to install it, experience the new back UI, new features but to make a USB installer you need a real mac or hackintosh (not VM) pc. And due to lack of real mac most of hackintosh lovers are stuck there and I.

Download mxkozzzz.dmg file to your computer. Double click mxkozzzz.dmg file to mount the disk image

Double click iODBC-SDK.pkg to run the installer. You will be guided through the steps necessary to install this software. Now you can register your ODBC driver.

Permission setup for iODBC on Mac OS

Allow write permissions to enable value update of USER DSN in iODBC Administrator

  1. In Finder, from your home {username} folder, go to {username}/Library/ODBC folder and find the file named odbc.ini.
    In this blog, we only need to allow the permission in user’s folder because we are only updating value in USER DSN. If you want to use a SYSTEM DSN instead, click “Go” in the finder menu and choose “Go to Folder…” or press Shift + Command + G as shortcut. Type in /Library/ODBC and click on “Go”.
    You can find the file named odbc.ini.
  2. Right click on odbc.ini, and choose Get Info option.
  3. In Sharing & Permission section, ensure your user group has the permission to Read & Write. You might need administrator permission to edit this section. Click on the lock icon at bottom right corner to unlock the permission to edit the list.

    the list, click the “+” button at bottom left corner to add yourself. Then select your privilege to see the options and set it as Read & Write.

  4. Now you are all set with the permission settings.
-->

The following instructions assume a clean environment and show how to install PHP 7.x, the Microsoft ODBC driver, the Apache web server, and the Microsoft Drivers for PHP for SQL Server on Ubuntu 16.04, 18.04, and 19.10, RedHat 7 and 8, Debian 8, 9, and 10, Suse 12 and 15, Alpine 3.11, and macOS 10.13, 10.14, and 10.15. These instructions advise installing the drivers using PECL, but you can also download the prebuilt binaries from the Microsoft Drivers for PHP for SQL Server GitHub project page and install them following the instructions in Loading the Microsoft Drivers for PHP for SQL Server. For an explanation of extension loading and why we do not add the extensions to php.ini, see the section on loading the drivers.

These instructions install PHP 7.4 by default using pecl install. You may need to run pecl channel-update pecl.php.net first. Note that some supported Linux distros default to PHP 7.1 or earlier, which is not supported for the latest version of the PHP drivers for SQL Server -- please see the notes at the beginning of each section to install PHP 7.2 or 7.3 instead.

Also included are instructions for installing the PHP FastCGI Process Manager, PHP-FPM, on Ubuntu. This is needed if using the nginx web server instead of Apache.

Contents of this page:

Installing the drivers on Ubuntu 16.04, 18.04, and 19.10

Note

To install PHP 7.2 or 7.3, replace 7.4 with 7.2 or 7.3 in the following commands.

Step 1. Install PHP

Step 2. Install prerequisites

Install the ODBC driver for Ubuntu by following the instructions on the Linux installation article.

Step 3. Install the PHP drivers for Microsoft SQL Server

If there is only one PHP version in the system, then the last step can be simplified to phpenmod sqlsrv pdo_sqlsrv.

Step 4. Install Apache and configure driver loading

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers with PHP-FPM on Ubuntu

Note

To install PHP 7.2 or 7.3, replace 7.4 with 7.2 or 7.3 in the following commands.

Step 1. Install PHP

Verify the status of the PHP-FPM service by running

Step 2. Install prerequisites

Install the ODBC driver for Ubuntu by following the instructions on the Linux installation article.

Step 3. Install the PHP drivers for Microsoft SQL Server

If there is only one PHP version in the system, then the last step can be simplified to phpenmod sqlsrv pdo_sqlsrv.

Verify that sqlsrv.ini and pdo_sqlsrv.ini are located in /etc/php/7.4/fpm/conf.d/:

Restart the PHP-FPM service:

Step 4. Install and configure nginx

To configure nginx, you must edit the /etc/nginx/sites-available/default file. Add index.php to the list below the section that says # Add index.php to the list if you are using PHP:

Next, modify the section following # pass PHP scripts to FastCGI server as follows:

Step 5. Restart nginx and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers on Red Hat 7 and 8

Step 1. Install PHP

To install PHP on Red Hat 7, run the following:

Note

To install PHP 7.2 or 7.3, replace remi-php74 with remi-php72 or remi-php73 respectively in the following commands.

To install PHP on Red Hat 8, run the following:

Note

To install PHP 7.2 or 7.3, replace remi-7.4 with remi-7.2 or remi-7.3 respectively in the following commands.

Step 2. Install prerequisites

Install the ODBC driver for Red Hat 7 or 8 by following the instructions on the Linux installation article.

Step 3. Install the PHP drivers for Microsoft SQL Server

You can alternatively install from the Remi repo:

Step 4. Install Apache

SELinux is installed by default and runs in Enforcing mode. To allow Apache to connect to databases through SELinux, run the following command:

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers on Debian 8, 9, and 10

Note

Apple Footer. This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the. Aug 18, 2017  I just did a fresh install of sierra, and have installed pyenv with homebrew and tested that it's working. I have a local 3.5.0 version of python in a virtualenv (read that 3.6 isn't workin. Macos sudo lsopenurlswithrole failed with error for the file. I'm trying to install OS X Yosemite through 'Install OS X Yosemite.app' downloaded from the Internet. When I try to open it by double clicking it, nothing happens. When I use the terminal I get the. Unfortunately, this issue is still occuring on Catalina 15.4 with Matlab 2020a. Trying to open the installer app in Finder does nothing (EDIT: this is a 2019 16' MBP).

To install PHP 7.2 or 7.3, replace 7.4 in the following commands with 7.2 or 7.3.

Odbc Manager For Mac Mojave Mac

Step 1. Install PHP

Step 2. Install prerequisites

Install the ODBC driver for Debian by following the instructions on the Linux installation article.

You may also need to generate the correct locale to get PHP output to display correctly in a browser. For example, for the en_US UTF-8 locale, run the following commands:

You may need to add /usr/sbin to your $PATH, as the locale-gen executable is located there.

Step 3. Install the PHP drivers for Microsoft SQL Server

If there is only one PHP version in the system, then the last step can be simplified to phpenmod sqlsrv pdo_sqlsrv. As with locale-gen, phpenmod is located in /usr/sbin so you may need to add this directory to your $PATH.

Step 4. Install Apache and configure driver loading

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers on Suse 12 and 15

Note

In the following instructions, replace <SuseVersion> with your version of Suse - if you are using Suse Enterprise Linux 15, it will be SLE_15 or SLE_15_SP1. For Suse 12, use SLE_12_SP4 (or above if applicable). Not all versions of PHP are available for all versions of Suse Linux - please refer to http://download.opensuse.org/repositories/devel:/languages:/php to see which versions of Suse have the default version PHP available, or to http://download.opensuse.org/repositories/devel:/languages:/php:/ to see which other versions of PHP are available for which versions of Suse.

Note

Packages for PHP 7.4 are not available for Suse 12.To install PHP 7.2, replace the repository URL below with the following URL:https://download.opensuse.org/repositories/devel:/languages:/php:/php72/<SuseVersion>/devel:languages:php:php72.repo.To install PHP 7.3, replace the repository URL below with the following URL:https://download.opensuse.org/repositories/devel:/languages:/php:/php73/<SuseVersion>/devel:languages:php:php73.repo.

Step 1. Install PHP

Step 2. Install prerequisites

Install the ODBC driver for Suse by following the instructions on the Linux installation article.

Step 3. Install the PHP drivers for Microsoft SQL Server

Note

If you get an error message saying Connection to 'pecl.php.net:443' failed: Unable to find the socket transport 'ssl', edit the pecl script at /usr/bin/pecl and remove the -n switch in the last line. This switch prevents PECL from loading ini files when PHP is called, which prevents the OpenSSL extension from loading.

Step 4. Install Apache and configure driver loading

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers on Alpine 3.11

Note

The default version of PHP is 7.3. Alternate versions of PHP may be available from other repositories for Alpine 3.11. You can instead compile PHP from source.

Step 1. Install PHP

PHP packages for Alpine can be found in the edge/community repository. Please check Enable Community Repository on their WIKI page. Add the following line to /etc/apt/repositories, replacing <mirror> with the URL of an Alpine repository mirror:

Then run:

Step 2. Install prerequisites

Install the ODBC driver for Alpine by following the instructions on the Linux installation article.

Step 3. Install the PHP drivers for Microsoft SQL Server

Step 4. Install Apache and configure driver loading

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Installing the drivers on macOS High Sierra, Mojave, and Catalina

If you do not already have it, install brew as follows:

Note

To install PHP 7.2 or 7.3, replace php@7.4 with php@7.2 or php@7.3 respectively in the following commands.

Odbc Manager Download

Step 1. Install PHP

PHP should now be in your path -- run php -v to verify that you are running the correct version of PHP. If PHP is not in your path or it is not the correct version, run the following:

Odbc Manager For Mac Mojave 2

Step 2. Install prerequisites

Install the ODBC driver for macOS by following the instructions on the macOS installation article.

In addition, you may need to install the GNU make tools:

Step 3. Install the PHP drivers for Microsoft SQL Server

Step 4. Install Apache and configure driver loading

Mac Os Odbc Manager

To find the Apache configuration file, httpd.conf, for your Apache installation, run

The following commands append the required configuration to httpd.conf. Be sure to substitute the path returned by the preceding command in place of /usr/local/etc/httpd/httpd.conf:

Step 5. Restart Apache and test the sample script

To test your installation, see Testing your installation at the end of this document.

Testing Your Installation

To test this sample script, create a file called testsql.php in your system's document root. This is /var/www/html/ on Ubuntu, Debian, and Redhat, /srv/www/htdocs on SUSE, /var/www/localhost/htdocs on Alpine, or /usr/local/var/www on macOS. Copy the following script to it, replacing the server, database, username, and password as appropriate.

Odbc Setup For Mac

Point your browser to https://localhost/testsql.php (https://localhost:8080/testsql.php on macOS). You should now be able to connect to your SQL Server/Azure SQL database.

Odbc Manager For Mac Mojave Ca

See Also