In [2]:
install.packages('DBI')
In [3]:
library(DBI)
In [ ]:
con <- dbConnect(RMySQL::MySQL(),
dbname = "tweater",
host = "localhost",
port = 3306,
user = "root",
password = "duyetdev")
In [ ]:
Tham khảo thêm: https://cran.r-project.org/web/packages/DBI/index.html
In [ ]:
In [ ]: