<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""><span class="moz-txt-citetags">>>>>>>> </span>I am working on MySQL 5.0 with RMySQL 0.7-2. All commands except
<span class="moz-txt-citetags">>>>>>>> </span>for
<span class="moz-txt-citetags">>>>>>>> </span>Select
<span class="moz-txt-citetags">>>>>>>> </span>statements work. I can create tables, Truncate then etc. When I
<span class="moz-txt-citetags">>>>>>>> </span>issue a
<span class="moz-txt-citetags">>>>>>>> </span>Select statement with dbSendQuery containing more than one
<span class="moz-txt-citetags">>>>>>>> </span>column in the
<span class="moz-txt-citetags">>>>>>>> </span>selection then R crashes. I have been looking around but could not
<span class="moz-txt-citetags">>>>>>>> </span>find any
<span class="moz-txt-citetags">>>>>>>> </span>solution to this. Does anyone knows whats wrong?
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>>>>> </span>Can you send the output of sessionInfo() and also a small example
<span class="moz-txt-citetags">>>>>>> </span>that
<span class="moz-txt-citetags">>>>>>> </span>reproduces the crash? It would be nice to know which OS you are
<span class="moz-txt-citetags">>>>>>> </span>working on.
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>>>> </span>R version 2.8.0 (2008-10-20)
<span class="moz-txt-citetags">>>>>> </span>i386-pc-mingw32
<span class="moz-txt-citetags">>>>>></span>
<span class="moz-txt-citetags">>>>>> </span>locale:
<span class="moz-txt-citetags">>>>>> </span>LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
<span class="moz-txt-citetags">>>>>></span>
<span class="moz-txt-citetags">>>>>> </span>attached base packages:
<span class="moz-txt-citetags">>>>>> </span>[1] stats graphics grDevices utils datasets methods
<span class="moz-txt-citetags">>>>>> </span>base other attached packages:
<span class="moz-txt-citetags">>>>>> </span>[1] MASS_7.2-44 RMySQL_0.7-2 DBI_0.2-4 lattice_0.17-17
<span class="moz-txt-citetags">>>>>></span>
<span class="moz-txt-citetags">>>>>> </span>loaded via a namespace (and not attached):
<span class="moz-txt-citetags">>>>>> </span>[1] grid_2.8.0
<span class="moz-txt-citetags">>>>>></span>
<span class="moz-txt-citetags">>>>>></span>
<span class="moz-txt-citetags">>>>>> </span>I'm Working on Windows XP with SP3. The MySQL Server resides on an
<span class="moz-txt-citetags">>>>>> </span>Ubuntu Server. The failure also happens when I have the server on the
<span class="moz-txt-citetags">>>>>> </span>same system as R.
<span class="moz-txt-citetags">>>>>></span>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>>></span>
<span class="moz-txt-citetags">>>>> </span>Okay, what's the output of the following R command readRegistry:
<span class="moz-txt-citetags">>>>></span>
<span class="moz-txt-citetags">>>>> </span>readRegistry("SOFTWARE\\MySQL AB", hive="HLM", maxdepth=2)
<span class="moz-txt-citetags">>>>></span>
<span class="moz-txt-citetags">>>>> </span>I have a suspicion it's a version mismatch between the version of
<span class="moz-txt-citetags">>>>> </span>MySQL client library with which the package was compiled and the
<span class="moz-txt-citetags">>>>> </span>version installed and loaded by RMySQL on your machine. Your output
<span class="moz-txt-citetags">>>>> </span>will give us the latter version, unless you have more than one
<span class="moz-txt-citetags">>>>> </span>installed.
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>></span>
<span class="moz-txt-citetags">>>> </span>More to the point, certain MySQL Windows releases have client DLLs
<span class="moz-txt-citetags">>>> </span>that are known to crash RMySQL. (It would be perverse if the API
<span class="moz-txt-citetags">>>> </span>had changed at patch levels within the same MySQL version, 5.0,
<span class="moz-txt-citetags">>>> </span>although it has changed between versions.) As far as I recall, the
<span class="moz-txt-citetags">>>> </span>deficient patch releases are within the range 5.0.21 to 5.0.44: I am
<span class="moz-txt-citetags">>>> </span>pretty sure that 5.0.45 and later (including 5.0.67) are unaffected.
<span class="moz-txt-citetags">>>></span>
<span class="moz-txt-citetags">>>> </span>Uwe Ligges and I built and tested RMySQL against 5.0.67, so the
<span class="moz-txt-citetags">>>> </span>recommendation is to update your Windows client to that version.
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>Do you have a recommendation for me as the maintainer going forward
<span class="moz-txt-citetags">>> </span>for supporting current and future MySQL releases? It seems like
<span class="moz-txt-citetags">>> </span>Peter's case won't be last as MySQL 5.1.30 is now the recommended
<span class="moz-txt-citetags">>> </span>download (at least when you click the "Download" button on mysql.com).
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>Not really, especially as Uwe controls the Windows binaries. (When I
<span class="moz-txt-citetags">> </span>did, I had a ReadMe with the tested version information.)
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>For a long time we did not distribute Windows binaries because of
<span class="moz-txt-citetags">> </span>these version-incompatibility issues.
</pre>
</blockquote>
<pre wrap=""><!---->As it seems that the problems come from the client.dll why not ship a
tested client with RMySQL. Both are open source an I think the only
thing should be to see if the licenses are compatible. If they are not
the same I can also get in touch with the MySQL guys (I do have quite a
few active contacts) to see if RMySQL is allowed to distribute the
clientbinary with RMySQL.
Cheers,
Peter
<div class="moz-txt-sig">--
Dipl.-Inf. Peter Benjamin Volk
Dresden University of Technology / Database Technology Group
Visiting Address: Noethnitzer Str. 46 / D-01187 Dresden / Germany
Postal Address: Computer Science Dept / D-01062 Dresden / Germany
Phone:
Tue, Wed: +49-351-463-37895 / +49-351-463-38259
Mon, Thu, Fri: +49-351-4048-312
</div></pre>
</div>
</body>
</html>