I am trying to connect with MySQL from R (version R-3.3.3). Unfortunately, I get the error. I tried to change the version to R-3.4.0 but the error is persistent.
library(DBI)
library(RMySQL)
db <- dbConnect(MySQL(), dbname = "example", host = "localhost",
port = 3306, user = "root",
password = "****")
Error: Error in .local(drv, ...) : Failed to connect to database: Error: Lost connection to MySQL server at 'reading authorization packet', system error: 10060
Please help!