Installing and using RMySQL in Windows

Source: Internet
Author: User

Install and use RMySQL in Windows. first install R,: http://ftp.ctex.org/mirrors/CRAN/bin/windows/base/ 2. install R-tools, http://ftp.ctex.org/mirrors/CRAN/bin/windows/Rtools/ 3. install MySQL (I installed MySQL 5.5. in the R installation directory, create Renviron under the \ etc directory. open the site file in notepad and add the following content: 1

MYSQL_HOME =/MySQL Server 5.5 (MySQL installation path)

 

5. in the MySQL directory, find libmysql under the \ lib directory. lib and libmysql. dll files, copy them to \ lib \ opt (New without this directory), and copy libmysql. dll is copied to the R installation directory \ bin \ i386 (32bit) or \ bin \ i386 (64bit) 6. open R-GUI and enter the following: 1
Install. packages ("RMySQL", type = "source ")

Complete the installation!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.