Connecting R Studio with SQL Database

I am trying to connect R studio version 1.2.5033 with a SQL database but I cant seem to form a connection between the two to import data for computations.

The error I am receiving:

Warning message:
package ‘DBI’ was built under R version 3.6.2

library(RMySQL)
Warning message:
package ‘RMySQL’ was built under R version 3.6.2

Hi,

Welcome to the RStudio community!

What you got there was just a warning when loading a package, you can safely ignore that. To work with a database, you first have to setup a connection in R to it, depending on the type of database you are using and the setup by administrators (if applicable). Check out this great tutorial to help you get started:

https://db.rstudio.com/getting-started/connect-to-database

Hope this helps,
PJ

1 Like

Got it done! Thank you.

ST

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.