Glad the code helped :)<br><br><div><span class="gmail_quote">On 12/4/07, <b class="gmail_sendername">Andrew Stewart</b> <<a href="mailto:boss@airbladesoftware.com">boss@airbladesoftware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On 4 Dec 2007, at 12:03, Tom Stuart wrote:<br><br>> On 4 Dec 2007, at 11:48, Andrew Stewart wrote:<br>>> Is there a pure Ruby way, ideally a Rake task, to dump all the data?<br>><br>> I don't know enough about MySQL privileges to know whether this'll
<br>> avoid your problem, but:<br>><br>>   * you can try dumping the schema using "rake db:schema:dump", and<br>> loading it the other end with "rake db:schema:load"; and<br>>   * the Manage Fixtures plugin (
<a href="http://svn.toolbocks.com/plugins/">http://svn.toolbocks.com/plugins/</a><br>> manage_fixtures/<br>> ) gives you a "rake db:fixtures:export_all" task that'll export the<br>> current table contents into fixtures, which you can then load the
<br>> other end with "rake db:fixtures:load".<br><br>That looks perfect.  Thank you!<br><br>The code appears to use only selects and inserts, not mysqldump, so<br>it should neatly sidestep my problem.<br><br>
Thanks again,<br>Andy Stewart<br><br>-------<br><a href="http://airbladesoftware.com">http://airbladesoftware.com</a><br><br><br><br>_______________________________________________<br>Chat mailing list<br><a href="mailto:Chat@lists.lrug.org">
Chat@lists.lrug.org</a><br><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br></blockquote></div><br><br clear="all"><br>-- <br>Nathaniel Steven Henry Brown<br>
604-724-6624