mysql-client on macOS Catalina 10.15.7 not working when attempting a connection from R #281
Unanswered
alexdiazortiz
asked this question in
Casks
Replies: 1 comment 1 reply
-
|
I'm pretty sure you need to use a MySQL ODBC driver (which exports the ODBC API) rather than the MySQL client driver (which exports the MySQL API). A quick search reveals that MySQL has their own ODBC driver (Connector/ODBC), but if that doesn't work for you, an online search for "mysql odbc driver macos" may yield the results you desire. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am interested on installing the ODBC MySQL driver on macOS Catalina 10.15.7 since I wan to connect to a MySQL database from R via the
DBIandodbcpackages.I have installed
unixodbcand it's functional as I have tested it with a different set of drivers.The bottle install of
mysql-clientseems to be uneventful (see log file attached),brew_bottle_install_mysql-client.log
yet when attempting the connection (from R) it breaks with some cryptic error message
Error: nanodbc/nanodbc.cpp:1021: 00000: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failedI have declared the driver in the
odbcinst.inias follows:Driver = /usr/local/opt/mysql-client/lib/libmysqlclient.dylibas suggested by the
mysql-clientcaveat of being keg-only.It seems as if the driver is not compiled against the
unixodbcdriver manager.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions