Re: [R] RMySQL...Can't initialize driver???

From: Duncan Murdoch <>
Date: Tue 27 Jun 2006 - 23:04:22 EST

On 6/27/2006 8:51 AM, Stephane Cruveiller wrote:
> Dear R users,
> I would like to query a MySQL database through R. I have installed
> the latest required packages (RMySQL and DBI) in R (v2.3.1). A MySQL
> server (v5.0.22) is running on my local machine but I can't initialize
> driver:
> ------------------------------------------------------------------------------------
> > library("RMySQL")
> Loading required package: DBI
> > MySQL(max.con = 10, fetch.default.rec = 500, force.reload = F)
> Error in new("MySQLDriver", Id = drvId) : unused argument(s) (Id ...)
> -------------------------------------------------------------------------------------
> Could somebody tell me what I have missed?

I have never used RMySQL, but from the error message, this looks like an incompatibility between it and DBI, presumably because one is newer than the other.

I have always found it easier to use RODBC. Because it uses the more general ODBC interface, it may be slower than a package that is tuned to a particular database, but it works, which is a substantial advantage.

Duncan Murdoch mailing list PLEASE do read the posting guide! Received on Tue Jun 27 23:22:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 28 Jun 2006 - 02:12:42 EST.

Mailing list information is available at Please read the posting guide before posting to the list.