BIG WORKS, Plz2013. 8. 9. 23:23
  • Download a connector / ODBC for your platform & Install it

  • Add "MySQL ODBC 5.2w Driver" (or yours installed) on Control Panel >> Administrator Tool >> Data Sources (ODBC).

  • Put Connection Parameters. Last Parameters 'Database' would be listed if all inputs are correct.

  • Test example below.


library(RODBC)
 
con <- odbcConnect("RODBC", uid="myid", pwd="mypw")
 
raw <- sqlQuery(con, "SELECT * FROM table1");


'BIG WORKS, Plz' 카테고리의 다른 글

How to start R with package "rqpd"  (0) 2013.01.24
Boot a USB flash drive in VirtualBox  (0) 2012.07.30
Posted by