Displaying 20 results from an estimated 2000 matches similar to: "RMySQL Fail to connect on update to R 2.8.1"
2006 Apr 12
1
Pipe delimiter ( | ) in "read.delim"
Hi R folks,
Can anyone tell me how to read in a pipe ("|") delimited text file? I've
tried the following:
read.delim("c:/junk/junk.txt",sep="|", skip=7, check.names=FALSE,quote = "",
header=F)
The file looks something like the following:
RD|I|04|013|9997|68103|5|7|017|830|20000221|00:00|12.6||6|||||||||||||
2010 Apr 15
3
Add header line to large text file
All,
I have a 30 million record text file without header information. I would
like to add a header to this file without reading it first. Is this
possible? The code below does what I want except that the readLines
portion takes quite a long time. Is there a way around reading the
lines? I'm working on Windows XP.
Zev
input<-readLines("c:/junk/forR.csv")
2008 Apr 11
1
Read text file subsetting rows
Hi All,
Can anyone direct me to a read function in R that will allow me to only
read in rows of a text file that begin with a particular value such as
the data below. I would read the entire file in and then limit, but the
files were constructed such that the first two letters determine how
many variables are in the row (different letters mean different numbers
of columns and different
2011 Aug 10
1
xtable - caption missing with float=FALSE
Hi,
For some reason I'm finding that my table caption is disappearing if I
print xtable output with the floating argument set to FALSE. Below is a
very simple Sweave file that produces two tables the first has no
caption and the second has a caption (if you want to see it
http://www.zevross.com/temp/test.pdf).
Does anyone know what I can do to fix this?
Zev
(I'm using Windows 7, 64
2006 Mar 01
1
Book: Multilevel Modeling in R ETA?
Hi R folks (Dr. Bates in particular),
In August 2005, Dr. Bates mentioned that the documentation for lme4
"will be in the form of a book with the working title 'Multilevel
Modeling in R'" and I'm just wondering if there is an estimated date of
publication or if it's still a long way off. The Rnews article does a
great job of introducing the package, but I'm
2011 Nov 03
1
Reclassify string values
Hi All,
Is there a simple way to convert a string such as c("A", "B" ,"C", "D")
to a string of c("Group1", "Group1", "Group2", "Group2"). Naturally I
could use the factor function as below but I don't like seeing that
warning message (and I don't want to turn off warning messages). Perhaps
a function
2006 Nov 13
0
segfault in RMySQL dbConnect error handling
Hi there. I see in a post from 2002 that you got the following
problem with RMySQL:
> con <- dbConnect(m)
Process R segmentation fault at Wed Aug 28 08:21:11 2002
I have the same problem today:
drv=dbDriver("MySQL")
dbConnect(drv) # or with pretty much any other failing options
Program received signal SIGSEGV, Segmentation fault.
0x00002b28d60c9fa0 in strlen () from
2005 Jan 29
2
Database Connection Problem with RMySQL package
Folks,
I failed to create a connection to the database under MySQL DBMS in
the R system via RMySQL's method dbConnection(...).
My setup is as follows:
Microsoft Windows XP 5.1.2600
MySQL 4.1.9
R 2.0.1
DBI 0.1-8
RMySQL 0.5-5
Both of DBI and RMySQL packages were downloaded from bell lab:
http://stat.bell-labs.com/RS-DBI/download/index.html
My case in R is as follows:
> library(DBI)
2005 Oct 18
1
RMySQL problems
I get the following error trying to connect to a MySQL database:
> library(RMySQL)
Loading required package: DBI
> drv<-dbDriver("MySQL")
> con<-dbConnect(drv, user="hothand", password=xxx,
host="localhost", dbname="hh03");
Error in mysqlNewConnection(drv, ...) : RS-DBI driver: (could not
connect hothand at localhost on dbname
2012 Aug 09
0
RMySQL dbConnect issues
Hello,
I have access to my database via command line and through workbench, and
have access on the grant tables:
mysql> SELECT host,user,password,select_priv,insert_priv FROM user;
+------+-------+-------------------------------------------+-------------+-------------+
| host | user | password | select_priv
| insert_priv |
2003 May 13
2
RMySQL crashes R
I have justed upgraded R v1.7.0 on Windows NT 4 and have installed the
latest RMySQL (version 0.5-1)and DBI (version 0.1-5) packages.
When I issue the following commands (tactfully adjusted) R just crashes and
disappears, any ideas?
require(RMySQL)
m <- dbDriver("MySQL")
con <- dbConnect(m, dbname="xxx", user="xxx", password="xxx",
2009 Feb 23
0
Segmentation Fault still exists
Hi All,
Sorry to bother everyone again.Ofcourse Prof Ripley ,Yihui and Uwe had
replied to my email.But this segmentation fault error was not solved.I agree
with Prof Ripley,as he said my R and all other configurations,are very
old.But what i don't understand is ,i was able to run analysis till few days
before,and why suddenly this error.
*The configuartions i use:---*
*R-version
*
*>
2007 Apr 22
0
Intro and a Question
Hello r-help!
My name is Dan McGoldrick, I am a statistical geneticist and I work with ontologies, AI and general genetic data analysis.
I was wondering aabout the tryCatch function -- don't really understand the implimentation...
What I would like to do is within an R API, test a mysql connection object for an error (server has gone away) and if the connection is functional leave it alone;
2009 Aug 07
1
RMySQL - overwrite record, not table
Hi, useR-
In RMySQL, how do I overwrite records? (equivalent to "replace" query).
For example, suppose that dat2 is a newer data.frame than dat1.
con <- dbConnect(MySQL())
res <- dbWriteTable(con, "DBname", dat1, row.names=F, append=T, replace=T)
res <- dbWriteTable(con, "DBname", dat2, row.names=F, append=T, replace=T)
This would not update/replace the
2008 Aug 15
1
dbConnect
Hi everybody,
I'm having a problem with connecting to my MySQL database.
Each time I try to connect
library(RMySQL)
m <- dbDriver("MySQL")
con <- dbConnect (m, host="my_host",username="my_username",
password="my_password", dbname="name_of_db")
it says
Fehler in mysqlNewConnection(drv, ...) :
RS-DBI driver: (could not connect
2011 Jan 17
2
Accessing MySQL Database in R
I have a local installation of MySQL on my computer.
I enter the following to access MySQL from the command line:
/Applications/MAMP/Library/bin/mysql -h localhost -u root -p
I am then prompted for a password, and I use: root
This connects me to MySQL in the command line.
I now want to access MySQL databases in R. I enter the following:
mysql <- dbDriver("MySQL")
conn <-
2009 Feb 18
0
Segmentation Fault occured while connecting to the database
Hi All,
Can anyone help me please?I don't know much about segmentation faults.I
understand what it is,but why my script's throwing the error i don't know.
This is my main function:----
*main<-function()*
*{*
* dbName<-"xyz_database"*
* hostName<-"xyz.com"*
* con<-myDbconnect(dbName,hostName) *
*
2007 Oct 04
0
RMySQL dbConnect
Hello, I have a problem..
I'm trying to make R communicate with MySQL, but I always receive an error..
My code is:
library(DBI)
library(RMySQL)
drv <- dbDriver("MySQL")
conn<-dbConnect(drv,username="####",password="####",dbname="prova",host="localhost")
and I receive this message:
Errore in function (classes, fdef, mtable) :
2009 Jan 19
1
[Win] Hangup RGui with RMySQL (PR#13453)
Full_Name: Apfel Schmied
Version: 2.8.1 (2008-12-22)
OS: WinXP SP2
Submission from: (NULL) (134.106.122.139)
RMySQL Version: 0.7-2
DBI Version: 0.2-4
MySQL Version: 5.1.30 (Enviroment Variable MYSQL_HOME is set)
Updated R from 2.60 to 2.8.1. Now Gui.exe hangs up (100% CPU Useage) when
requesting data from a mysql database.
Example Code:
2002 Aug 28
0
segfault in RMySQL
Hi all,
I have experimented a segmentation fault error using
RMySQL_0.4-6 library in R 1.5.1.
Look the sequence:
-------------------------------------------
> library(RMySQL)
> m <- dbManager("MySQL")
> m
<MySQLManager:(1137)>
> describe(m)
<MySQLManager:(1137)>
Driver name: MySQL
Max connections: 10
Conn. processed: 0
Default records per