r - RODBC error - ODBC connection failed - can't connect to MySQL with my mac (mavericks) -


i trying connect mysql database through r using rodbc on mac (mavericks) after stupid number of hours of effort, still can't working. when try connect database, rodbc throws error (error message terse, don't know means):

ch <- odbcconnect("mydatabasename") "warning messages: 1: in odbcdriverconnect("dsn=mydatabase") : [rodbc] error: state h, code 0, message [unixodbc][ 2: in odbcdriverconnect("dsn=mydatabasename") : odbc connection failed"

i got @ following instructions @ following blog (install unixodbc): http://hiltmon.com/blog/2013/09/18/setup-odbc-for-r-on-os-x/

it shows me connected, if enter:

isql -v mydatabasename

i installed r source , install worked no noticeable errors, when try connect database rstudio, with:

ch <- odbcconnect("mydatabasename")

i odbc connection failed error. can me understand error means? or how potentially fix it? or can talk help?

you keep me shooting myself. haha! seriously... would.

i had same problem you've reported. odbc connection using mysql odbc 5.3 unicode driver (/usr/local/lib/libmyodbc5w.so) although connect isql, actual sql commands returning garbage.

i tried changing odbc.ini use the ansi driver instead (/usr/local/lib/libmyodbc5a.so). worked , rodbc can connect mysql database.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -