Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4042220
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:58:42+00:00 2026-05-20T12:58:42+00:00

How to use MySQL in R (statistic language) for Windows (7)? There is no

  • 0

How to use MySQL in R (statistic language) for Windows (7)?

There is no problems then using linux:

install.packages('RMySQL')
library(RMySQL)
...

But I found no such package for Windows on CRAN. There is only note about this fact.
I found package for version 2.10, but it is not usable in 2.12.1.

Also tried

install.packages("RMySQL", type="source")

but got an error :

* installing *source* package 'RMySQL' ... 
ERROR: configuration failed for package 'RMySQL'
* removing 'C:/.../R/win-library/2.12/RMySQL'

Is there any way to connect to MySQL database from R in windows?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:58:42+00:00Added an answer on May 20, 2026 at 12:58 pm

    Found solution with help of ran2, who gave me link to common question. The basic process is described here, but there are several hints, So I will describe the whole solution (please change the R version and paths if needed):

    1. Install latest RTools from here
    2. install MySQL or header and library files of mysql
    3. create or edit file C:\Program Files\R\R-2.12.1\etc\Renviron.site and add line like MYSQL_HOME=C:/mysql (path to your mysql files)
    4. copy libmysql.lib from mysql/lib to mysql/lib/opt to meet dependencies.
    5. copy libmysql.dll to C:\Program Files\R\R-2.12.1\bin or to windows/system32 directory.
    6. run install.packages('RMySQL',type='source') and wait while compilation will end.

    Thanks to all who tried to answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are planned to use MySQL 5.5 but we do saw that there are
I use MySQL in a fairly complex web site (PHP driven). Ideally, there would
I have application that use mysql database, but now i need to port it
I am trying to use MySQL benchmark to test some queries. But, I am
I want to use mysql with utf8, but i dont know how to set
I want use MySQL database in R environment. I am using Ubuntu OS. To
I like to use MySQL to do quantitative analysis and statistics. I would like
I'm about to use MySQL with Hibernate on a Tomcat 5.5.x server. Do I
I am starting to use MySQL with JDBC. Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql:///x, x, x);
I'd like to use MySQL in this form: SELECT 1 AS one, one*2 AS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.