我正在尝试使用SSL使用RMySQL连接到远程数据库,但似乎无法使其工作。我在OSX,R版本3.4.2。
在命令行上通过mysql连接使用:
mysql -h host.com --ssl-mode=REQUIRED -u uname -p
但是当我尝试连接RMySQL时,我收到了一些错误消息。
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.
并且
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
有谁知道这里会发生什么?