There may be some instances of a name mismatch causing the problem (e.g. in one of the linked-to cases, they use -n "MySQL"
instead of the prescribed -n "MySQL ODBC 5.3"
from the notes).
However...in my case it was a matter of not using sudo
. The error message is not very helpful in indicating that the problem could be a matter of privileges! :-/ But at the very top of the linked instruction page it says (emphasis mine):
To install the driver from a tarball distribution (.tar.gz file), download the latest version of the driver for your operating system and follow these steps, substituting the appropriate file and directory names based on the package you download (some of the steps below might require superuser privileges)
What's going on is that unixodbc has system-wide odbcinst.ini
and odbc.ini
. It is stated that you should not be editing these files directly, but they are edited via an API that unixodbc provides. That API is called by the MySQL helper utility called myodbc-installer
:
(Note: unixodbc on most platforms provides the (W)ide Character version of SQLInstallDriverEx()
, but myodbc-installer
defines its own SQLInstallDriverExW()
if it is not available via a shim.)
This API apparently doesn't have a way of saying it can't get the necessary privileges to the files (in /usr/local/etc
or perhaps just in /etc
). So myodbc-installer
is just parroting what it got. Sigh.