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
0
votes
2 answers

RMySQL update row, not full table

Does anyone know how I can use RMySQL (or another library) to update a row in a table, rather than having to pull out the full table and push it back in? I don't want to read such a huge table into memory just to update one row. What I am trying to…
Noobnoob
  • 27
  • 8
0
votes
1 answer

Error in dbEscapeStrings/concerto.updateState [concerto platform]

I have installed concerto platform in my computer (Ubuntu 15.04). I am trying to run a simple test but it stops when the second html template is supposed to appear (I've attached the output below). I have tried to upload RMySQL to current version…
0
votes
0 answers

Cannot install package Rmysql

When I try the following command install.packages('RMySQL',type='source') I got an error as below Installing into ‘C:/Users/Thanushiya/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session…
dhanu
  • 55
  • 10
0
votes
1 answer

How to make Shiny reactivity work with SQL database?

Alright, I modified the script following @Pork Chop advice: server.R library(shiny) library(DT) library(RMySQL) con <- dbConnect(MySQL(), user="myuser", host="myhost", dbname="mydb") shinyServer(function(input, output) { …
enricoferrero
  • 2,249
  • 1
  • 23
  • 28
0
votes
1 answer

Not able to Insert chr datatype column using RMySQL

I have five columns. Out of these, am not able to insert column TagName into my database using RMySQL. The various methods I have used are: sql <- sprintf("insert into Tags (Id, TagName, Count, ExcerptPostId, WikiPostId) values (%d, '%s', %d, %d,…
timekeeper
  • 698
  • 15
  • 37
0
votes
2 answers

Connection to MySQL Server using RMySQL Library through Bastion in R

On my local machine, I have ssh into the bastion where I can then connect to the remote MySQL server. I know that this is working because in terminal, it says that I have successfully connected and when I use an app like SQLPro and attempt to…
universe
  • 47
  • 5
0
votes
1 answer

Placing R dataframe in RODBC/RMySQL/redshift query

I have a dataframe in R that has about 100k IDs. I want to place these IDs in my queries connecting R to Oracle, MySQL, and redshift tables using R packages RODBC, MYSQL, and redshift. For example, output <- dbGetQuery(conn,paste("select * from…
Rob
  • 1
0
votes
2 answers

How to use paste function and quotes, in a for loop and insert statement

Through a for loop with R language, I'm trying to use an insert statement to save rows in a table: One row example looks like this : NUMPAT NAME FIRSTNAM BIRTHDATE SEX DATPREL ADICAP1 IDPAT NUMERORUM 1 ELOSTE …
freestyle
  • 67
  • 8
0
votes
2 answers

Connect via RMySQL to AWS

I have installed an instance of a learning management system (Moodle) on AWS. The LMS uses MySQL. I want to gather data from the tables using R and use the following code: library(DBI) con <- dbConnect(RMySQL::MySQL(), …
user3819568
  • 170
  • 1
  • 8
0
votes
0 answers

MySQL version for RMySQL

I am using MySQL and R, with the package RMySQL... (naturally) After a computer update, and when loading RMySQL, I started getting this warning message: RMySQL was compiled with MySQL 5.5.40 but loading MySQL 5.6.24 instead! This may cause problems…
Diego-MX
  • 2,279
  • 2
  • 20
  • 35
0
votes
0 answers

Unable to get the data from select query using R script

I am using R studio to do analysis with data. Able to install RMYSQL libraries and connect to DB but when I am trying write select query I am unable to get the data. I had written script like below > mydb <- dbConnect(MySQL(), user='user',…
Madhu Nali
  • 181
  • 1
  • 4
  • 15
0
votes
1 answer

How to parsimoniously refer to a data frame in RMySQL

I have a MySQL table that I am reading with the RMySQL package of R. I would like to be able to directly refer to the data frame stored in the table so I can seamlessly interact with it rather than having to execute RMySQL statement every time I…
bencrosier
  • 115
  • 6
0
votes
2 answers

Empty result for sql query in Rstudio-server

I'm trying to get data from MySQL DB into Rstudio-server. My actions are like mydb = dbConnect(MySQL(), user='user', password='password', dbname='dbname', host='localhost') query <- stri_paste('select sellings.updated_at AS Up_Date,…
Serj
  • 1
0
votes
1 answer

R - Can I pass a command line argument using Rscript to a query using RMySQL dbConnect?

I am trying to pass a site id argument as an integer from Rscript on the command line to a SQL statement inside dbConnect using RMySQL. However I am getting an error "Error in mysqlQuickSQL(conn, statement, ...) : unused arguments ("3", " AND…
0
votes
1 answer

Install RMySQL in windows?

I followed the instructions from the blog post Installing RMySQL under Windows. The package seems to install, but actually fails. Output from the installation: * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and…