Skip to content
Prev 7787 / 15075 Next

Reading a MySQL table into R

On Jan 31, 2011, at 2:14 PM, Marc Schwartz wrote:

            
3. RJDBC (also on CRAN)

Since OS X already has the matching Java all you need is the MySQL JDBC driver Connector/J - see ?JDBC for an example.


Nonetheless I was going to interject that all the methods above assume that the database is accessible form the outside, which is usually not the case. So you should check first that the MySQL is actually running on a externally accessible port so you can connect to it remotely. If it doesn't, you can use ssh + port forwarding if you have ssh access to the machine, otherwise you're in trouble.

Cheers,
Simon