Skip to content

Instantly share code, notes, and snippets.

@smzn

smzn/MySQL.R

Created Jan 20, 2017
Embed
What would you like to do?
MySQL.R
mysql.connect <- function(){
dbconnector <<- dbConnect(dbDriver("MySQL"),dbname="XXXXX",user="YYYYY", password="ZZZZZZ")
}
mysql.getSelect <- function(){
mysql.data <<- dbGetQuery(dbconnector, "SELECT `attack`, `defence`, `hp`, `exp`, `gold`, `water` FROM `monsters` ")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.