I'm trying to connect to a MySQL server from R. I'm using the RMariaDB package and I keep getting the following error.
Error: Failed to connect: Plugin https could not be loaded: The specified module could not be found. Library path is '/mingw64/lib/mariadb/plugin/https.dll'
I've tried searching and got nothing. I've also tried looking for that dll on the system and can't seem to find it, so it'd appear that I'm missing some files. But I've tried reinstalling R and I still had the problem, so I'm really not sure how to proceed. I don't even have a mariadb folder under mingw64, assuming it's the mingw64 folder under rtools I need to look in, so perhaps that's where my problem is.
I'm wondering if there perhaps is something else I need to install aside from the DBI and RMariaDB packages. I also installed ODBC just in case that was what was needed, but that didn't change anything.
Here's the code I used to connect to the database. I think it should be correct, but perhaps I made a mistake somewhere.
con <- DBI::dbConnect(RMariaDB::MariaDB(),
host = "URL_to_DB",
user = "user_name",
password = rstudioapi::askForPassword("Database password")
)