1

I'm trying to connect to MySQL Workbench using RMySQL:

con <- dbConnect(dbDriver("MySQL"), host="hostName", port = number, user = "user", password = "password", dbname="dbname") 

and I got an error:

Error in .local(drv, ...) : Failed to connect to database: Error: Plugin mysql_clear_password could not be loaded: The specified module could not be found.

I couldn't find anything about that error in RMySQL and I don't know how to solve that problem. Anyone could help?

3
  • 1
    Is this error coming from your code or from the MySQL server itself? Commented Aug 23, 2016 at 7:55
  • 1
    Probably from code. I mean I can see it in terminal in R Studio and I don't have any other information about that except for that what I wrote above... :( Commented Aug 23, 2016 at 8:07
  • 1
    @Natalia Please check the ODBC driver is installed on your computer. May be you could check with local database first before making a connection to remote database. Also please check the following link here Commented Aug 23, 2016 at 11:09

1 Answer 1

3

Set system environment variable LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN = Y:

image

Sign up to request clarification or add additional context in comments.

1 Comment

You are a true legend!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.