[R] Database newbee problem...

Fredrik Karlsson fredrik.karlsson at ling.umu.se
Wed Oct 16 07:11:09 CEST 2002


Hi all,


This is a potentially very stupid question about MySQL <-> R
interaction, but I have not been able to solve it.
I'm just trying to connect R to my MySQL databse, and gets this:

> library(RMySQL)
Loading required package: methods 
> m <- dbDriver("MySQL")
> con <- dbConnect(m,group="testdb")

Process R segmentation fault at Wed Oct 16 07:04:30 2002

My .my.conf contains this:

[client]
user = zak
host = localhost
password=<something>

[rs-dbi]
database = sdata

[testdb]
host = localhost
database = testDB

and connecting through the mysql client is no problem using those
settings:

$ mysql 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 34 to server version: 3.23.49-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use testDB
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;

+------------------+
| Tables_in_testDB |
+------------------+
| pet              |
+------------------+
1 row in set (0.00 sec)

mysql>


What's wrong with my setup that's causing R to segfault (but not mysql
client)?
Any ideas?

/Fredrik
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list