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
1 answer

How to connect database MySQL in R with Password?

My problem is that I am able connect database without using password and also able execute the queries but when I am trying to connect database with password it is giving error. The details I have mentioned below what I am doing and what is the…
Saurabh
  • 867
  • 3
  • 13
  • 28
0
votes
2 answers

RMySQL dbWriteTable to a table with a MySQL reserved word as name

I am having trouble with the dbWriteTable command from the RMySQL package. I have to append records to a table name which is called 'order', a reserved word in MySQL. dbWriteTable(connection, "`order`", df, append = T) Give as error: Warning…
jeroen81
  • 2,305
  • 5
  • 29
  • 41
0
votes
1 answer

How to select all data but the last week in RMySQL with timestamp?

I have this column "timestamp" in table A, and I want to select all data but the last week, here is my R code but an error pop up saying "Error in function (classes, fdef, mtable) : unable to find an inherited method for function "dbWriteTable",…
Rosa
  • 1,793
  • 5
  • 18
  • 23
0
votes
1 answer

rmysql return data type

I am extracting some data from a db using R and RMySQL and the dates come back as factors. I then have to call as.Date() on this column. Because there are a lot of records, this takes a long time. Is there a way to strong type the return values…
Alex
  • 19,533
  • 37
  • 126
  • 195
0
votes
1 answer

RMySQL installation : $operator is invalid for atomic vectors

Consider the scenario below. Adding package 'RMySQL' in R2.14.0 > install.packages('RMySQL',type='source') * installing *source* package 'RMySQL' ... ** package 'RMySQL' successfully unpacked and MD5 sums checked **checking for $MYSQL_HOME...…
useR
  • 23
  • 5
-1
votes
1 answer

R MySQL For Loop Error

I Have a list of My SQL files with the following names. These are located in a folder whose path is reportconnection (reportconn) TableName A1_1 A1_2 A1_3 A1_4 A1_5 A1_6 A1_7 A1_8 Each of these tables consists of data regarding 1 e mail…
Vishnu Raghavan
  • 83
  • 1
  • 10
-1
votes
1 answer

selectInput() not passing anything to selected_data() (R shiny)

I am working on R shiny app. Please note that I am trying to load data from my mysql server. So I used help of RMySQL package. In my ui.R file, I have this: selectInput("pitchername","Pitcher Name:", choices = unique(pitcher_names$pitcher_name),…
jamryu
  • 668
  • 10
  • 24
-1
votes
1 answer

Installing RMySQL package on Windows connecting to external MySQL on Linux server

I am attempting to install the RMySQL package to connect to a MySQL database in R. I run RStudio in Windows on my local PC, with no local copy of MySQL. I would like to use RMySQL to query (but not update/delete or otherwise change) data on a MySQL…
-2
votes
1 answer

i have student db in my localhost but still it showing this

install.packages("RMySQL") library(RMySQL) library(dbConnect) install.packages("dbConnect", type = "source") library(dbConnect) mysqlconnection = dbConnect(MySQL(), user = 'root', password = '', dbname = 'student', host = 'localhost') Error in…
-2
votes
1 answer

How to view data, that are parsed from the MySQL database, in offline, using SQLite?

I am developing my school's timetable app for android. I am getting timetable data from MySQL database. -> I have access to the timetable, only when I have an internet. But I want to make timetable accessible without the internet. I read that I…
-2
votes
2 answers

How can access a database in MySQL server on my laptop from a cloud instance (preferably from within R)?

I would like couple things clarified. (I have mysql client installed on my remote VM running on Ubuntu 16.04, goal is to access the database from within R but I have been trying so far with mysql as such: mysql -u root -p -h…
Shér
  • 9
  • 5
-3
votes
1 answer

Import huge data from MySQL to R using RMySQL

I have a table in a mysql db that contains 312 millions rows and 10 fields/columns. I am trying to import this data into R, using library("RMySQL") but this kills my desktop (config 8 GB RAM 64 bit AMD Dual core processor running Linux Mint 15)Is…
user3006691
  • 435
  • 3
  • 7
  • 16
-5
votes
1 answer

R Version 2.15 MySQL Connection Windows & Cent Os

Possible Duplicate: adding RMySQL package to R fails? I have R installed on two machines running Windows 7 x64 and Cent Os x64. I am having hard time installing a package to connect to my mysql database. Database is on the Cent OS box but I can…
ODelibalta
  • 2,194
  • 1
  • 18
  • 28
1 2 3
27
28