How to install RMySQL package into R

If you want work with MySQL Database in R, you have to install RMySQL package.

There is very simple guide how you can install it.

RStudio                  mysql

[wp_ad_camp_1]

  1. Open terminal and install dependencies first
    sudo apt-get install libdbd-mysql libmysqlclient-dev
  2. Run R or RStudio and install RMySQL package
    install.packages('RMySQL')

 

Done, you can connect your R project with MySQL DB now.

[wp_ad_camp_1]

Leave a Reply

Your email address will not be published. Required fields are marked *