I'm trying to use the RMySQL package to read data directly from tables in a MySQL database into R. However I can't make the connection to the DB from R.
The line of code:
mydb <- dbConnect(RMySQL::MySQL(),
user = "root",
password = "*****************************",
dbname = "home", host = "")
returns the error message
Error in .local(drv, ...) : Failed to connect to database: Error: Plugin caching_sha2_password could not be loaded: The specified module could not be found.
Can anyone help here please? Thanks