I'm trying to connect to a remote database using RMySQL using SSL, and cannot seem to get it to work. I'm on OSX, R version 3.4.2.
Connecting via mysql on command line works using:
mysql -h host.com --ssl-mode=REQUIRED -u uname -p
But then when I try to connect with RMySQL, I get one of several error messages.
RMySQL::dbConnect(MySQL(), user = "uname", password = "pword",
host = "host.com", dbname = "db")
Error in .local(drv, ...) :
Failed to connect to database: Error: Connections using insecure
transport are prohibited while --require_secure_transport=ON.
And
RMySQL::dbConnect(MySQL(), user = "uname", password = "pword",
host = "host.com", dbname = "db",
client.flag = CLIENT_SSL)
Error in .local(drv, ...) :
Failed to connect to database: Error: Bad handshake
Does anyone know what could be going on here?