使用RMySQL,R和MySQL连接到数据库

时间:2011-12-13 00:37:15

标签: mysql database r database-connection

我正在尝试从R连接到我的数据库。当我从shell启动服务器时(使用unix),我必须传递--ssl-ca = myfile。如何使用dbConnect函数传递此标志?感谢。

1 个答案:

答案 0 :(得分:6)

问题解决了。在某个目录中创建一个文件,并在该文件中写下以下内容:

[client]
password=yourpass
username=yourusername
...
ssl-ca=yourcertspath

然后将文件名传递给dbConnect

的default.file参数