Questions tagged [rmysql]

An R package for interfacing with MySQL and MariaDB databases.

RMySQL is an package providing an interface to and databases. RMySQL uses the interface which is also used by the packages , , , and .

Repositories

Other resources

Related tags

418 questions
3
votes
1 answer

Simplifying database access from R

Is there an easy way to make data from a MySQL DB accessible via a web interface? Is there a package that will translate programmatic HTTP queries into CSV files? I would like to make R scripts available to others in my lab, but the scripts…
Chris Warth
  • 890
  • 12
  • 26
3
votes
1 answer

Missing mysql.h and trying to find mysql-devel

(I've been through four or five questions that are related to mine, but this sticking point I run into doesn't seem to be addressed in them.) In trying to run RMySQL on RStudio on a windows machine, I've been trying to follow the help given here:…
rschwieb
  • 746
  • 2
  • 16
  • 41
3
votes
0 answers

R Multithreaded database access

I have a a bunch of computation that needs to be done in parallel. In this computation the database is accessed through one global channel. So it is something like this: library(doMC) registerDoMC(2) channel <<- connect_to_database() results <-…
RodrigoReis
  • 111
  • 4
3
votes
1 answer

RMySQL error 'configure' exists but is not executable

I am installing RMySQL on centos. There were many dependencies, and I was able to install all. But still getting one error, when I am trying to install. The command I am executing is below: R CMD INSTALL RMySQL_0.9-3.tar And I am getting…
Sanjay
  • 1,570
  • 1
  • 13
  • 30
3
votes
4 answers

installing RMySQL gives error RS-MySQL.h:32:19: fatal error: mysql.h: No such file

I tried to install the RMySQL-library (R version 2.14.2, WinXP on 32bit) but got the following error message: install.packages("D:/R/library/RMySQL_0.9-3.tar.gz",repos=NULL, type="source") ... RS-MySQL.h:32:19: fatal error: mysql.h: No such file or…
giordano
  • 2,954
  • 7
  • 35
  • 57
2
votes
2 answers

Win64 compiling package from source: "sorry, unimplemented: 64 bit mode not compiled in"

Trying to install RMySQL on 64-bit Windows 7. Using R-2.14.2 with Rtools214 and MySQL Server 5.5. Read through several step-by-steps of RMySQL source installation. Troubleshooting: - Copied libmysql.dll to R-2.14.2/bin AND R-2.14.2/bin/i386. -…
Zack
  • 517
  • 1
  • 4
  • 14
2
votes
1 answer

RMySQL Windows 7 Home Installation Error

I have tried pretty much everything suggested on stack overflow and on http://biostat.mc.vanderbilt.edu/wiki/Main/RMySQL but the installation still fails with the error message: "ERROR: configuration failed for package 'RMySQL'". I installed the…
Alex
  • 19,533
  • 37
  • 126
  • 195
2
votes
1 answer

rmysql match numbers in a list

I'm trying to do a query in rmysql to get data from a db. I have a list of idNumbers in a column that I want to match and pull records for from a database. R data frame: df1 idNumColumnInR saleAmt 345 22.34 456 …
screechOwl
  • 27,310
  • 61
  • 158
  • 267
2
votes
1 answer

error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': could not find function "MySQL"

I am getting an error message " error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': could not find function "MySQL"" Here is the part of the code: library(DBI) conn <- dbConnect( drv = RMySQL::MySQL(), dbname =…
Mahmood
  • 21
  • 1
  • 2
2
votes
1 answer

Select SQL column to get in shiny

shiny and SQL server are linked. We succeeded in specifying search conditions by input from shiny. Isn't it possible to select the column names to be obtained in this way in the output from shiny? ui.R shinyUI( fluidPage( …
Tim Ikata
  • 201
  • 1
  • 7
2
votes
0 answers

Resolving conflict with RSQLite and RMySQL in the same session

I don't know that this is an RSQLite/RMySQL conflict, but that's my best guess so far. I use RMySQL to get data from a MySQL database, then I close that connection with dbDisconnect(). Then I use these data to in a record linking process using the…
Richard Herron
  • 9,760
  • 12
  • 69
  • 116
2
votes
1 answer

How to fix "Error in .local(conn, statement, ...) : could not run statement: The used command is not allowed with this MySQL version" error in R?

So as of two days ago I installed MySQL version 8.0.17 and setup a database on a local server on my MACOS version 10.14.5. I have a dataframe in RStudio that I want to write to the only table under a database that I have just created but am unable…
jholmes
  • 49
  • 1
  • 7
2
votes
1 answer

Error in .local(drv, ...) : Failed to connect to database: Error: Can't connect to MySQL server on 'xx.143.13.xxx' (0)

I am getting erro in .local(drv,...). I have no idea how to fix this issue. Can anyone help me out why showing such a error and how to fix this error? code: library(RMySQL) mydb = dbConnect(MySQL(), user='XXXXXXX', …
Sanky Ach
  • 333
  • 8
  • 23
2
votes
1 answer

Connecting MySQL with R

This is how I am trying to connect MySQL to R. db <- dbConnect(MySQL(), user='username', password='pwd',dbname=dbx, host = 'local', port = 3306) But I'm getting this error: Error in .local(drv, ...) : Failed to connect to database: Error: Plugin…
Searcher
  • 21
  • 2
2
votes
1 answer

What is the purpose of dbClearResult() in DBI/RMySQL/RMariaDB?

SQL novice here. In the Hello World section of the RMySQL github page, there is the following - # You can fetch all results: res <- dbSendQuery(con, "SELECT * FROM mtcars WHERE cyl = 4") dbFetch(res) dbClearResult(res) I don't understand the…
Ben
  • 20,038
  • 30
  • 112
  • 189