4
Does anyone know how #Mysql can have access to a dataframe that was handled in R, I have already connected to the following script
install.packages("RMySQL")
install.packages("RJDBC")
library(DBI)
library(RMySQL)
library(RJDBC)
mydrv <- dbDriver("MySQL")
conn <- dbConnect(mydrv, dbname= "" ,host="****",port=3306, user="***",password="***")
So far, I still don’t see R frames dates in Mysql.
Can someone help me?
If the connection is ok, you can list the Mysql tables with the function
dbListTables
, pull tables from MYSQL to R with dbGetQuery or dbGetTable– Daniel Falbel
Are you creating an SQL db or want to make a connection to a database via odbc? If this is the first option, you need to write the data in the newly created database running
DBI::dbWriteTable()
. In the second case, @Danielfalbel explained well.– JdeMello
Thank you so much for your answers, it worked
– Shirlei Alexandrino