src_mysql_cnf | R Documentation |
Connect to local MySQL Server using ~/.my.cnf
src_mysql_cnf(dbname = "test", groups = "rs-dbi", ...)
dbname |
name of the local database you wish to connect to. Default is
|
groups |
section of |
... |
arguments passed to |
src_mysql
, mysqlHasDefault
if (require(RMySQL) && mysqlHasDefault()) {
# connect to test database using rs-dbi
db <- src_mysql_cnf()
class(db)
db
# connect to another server using the 'client' group
src_mysql_cnf(groups = "client")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.