From bill.walton at charter.net Fri Aug 10 08:42:10 2007 From: bill.walton at charter.net (Bill Walton) Date: Fri, 10 Aug 2007 07:42:10 -0500 Subject: [Instantrails-users] setting MySQL max_allowed_packet size Message-ID: <002e01c7db4b$ded5c450$6501a8c0@Precision670> Greetings! I need to set max_allowed_packet size for some testing that revolves around a MySQL driver problem. I've put the line... max_allowed_packet=XXXXXXXXXX in my.ini via the IR interface. Is that the right place to put it? And is there a way to check / see that the setting is actually what I expect it to be? Should I be using the MySQL Administration tool for this? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070810/db4c9d4f/attachment.html From walkerwebdata at gmail.com Sun Aug 19 07:18:29 2007 From: walkerwebdata at gmail.com (Walker Web Data) Date: Sun, 19 Aug 2007 12:18:29 +0100 Subject: [Instantrails-users] Instead of using the command line Message-ID: <623c5bf90708190418u47715400i931150cd60f26819@mail.gmail.com> Instead of using the command line to, for example, insert records individually, is it possible to use an easier way such as having a number of records in an external file and inserting them all at once? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070819/b1bf4669/attachment.html From wfroelich at dbsnow.com Mon Aug 20 01:48:20 2007 From: wfroelich at dbsnow.com (William (Bill) Froelich) Date: Mon, 20 Aug 2007 00:48:20 -0500 Subject: [Instantrails-users] Instead of using the command line In-Reply-To: <623c5bf90708190418u47715400i931150cd60f26819@mail.gmail.com> References: <623c5bf90708190418u47715400i931150cd60f26819@mail.gmail.com> Message-ID: There are a number of ways that you can accomplish this. I am assuming you are using MySQL as the database. 1) You could use this as an opportunity to write a parser / importer in Ruby using fastercsv or similar. 2) Do a bulk import to MySQL as described at the following link http://www.modwest.com/help/kb6-253.html 3) Setup the data file and use rake. 4) Find a tool that supports the bulk import to MySQL. How you approach it depends primarily on your current need. #1 & #3 give you an opportunity to learn more about Ruby and database interactions but #2 is probably the quickest to implement since it should be existing functionality. Note: I have not tested any of these approaches directly with MySQL but do use the Oracle equivalent of #2 frequently. Hope this helps! --Bill Froelich ________________________________ From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Walker Web Data Sent: Sunday, August 19, 2007 6:18 AM To: Instantrails-users at rubyforge.org Subject: [Instantrails-users] Instead of using the command line Instead of using the command line to, for example, insert records individually, is it possible to use an easier way such as having a number of records in an external file and inserting them all at once? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070820/2ea9750b/attachment.html From walkerwebdata at gmail.com Mon Aug 20 03:34:52 2007 From: walkerwebdata at gmail.com (Walker Web Data) Date: Mon, 20 Aug 2007 08:34:52 +0100 Subject: [Instantrails-users] Instead of using the command line In-Reply-To: References: <623c5bf90708190418u47715400i931150cd60f26819@mail.gmail.com> Message-ID: <623c5bf90708200034k78ea8678y524a83b4cf260a0d@mail.gmail.com> Thank you, Bill. On 8/20/07, William (Bill) Froelich wrote: > > There are a number of ways that you can accomplish this. I am assuming > you are using MySQL as the database. > > 1) You could use this as an opportunity to write a parser / importer in > Ruby using fastercsv or similar. > > 2) Do a bulk import to MySQL as described at the following link > http://www.modwest.com/help/kb6-253.html > > 3) Setup the data file and use rake. > > 4) Find a tool that supports the bulk import to MySQL. > > How you approach it depends primarily on your current need. #1 & #3 give > you an opportunity to learn more about Ruby and database interactions but #2 > is probably the quickest to implement since it should be existing > functionality. > > Note: I have not tested any of these approaches directly with MySQL but do > use the Oracle equivalent of #2 frequently. > > Hope this helps! > > --Bill Froelich > > > ------------------------------ > *From:* instantrails-users-bounces at rubyforge.org [mailto: > instantrails-users-bounces at rubyforge.org] *On Behalf Of *Walker Web Data > *Sent:* Sunday, August 19, 2007 6:18 AM > *To:* Instantrails-users at rubyforge.org > *Subject:* [Instantrails-users] Instead of using the command line > > Instead of using the command line to, for example, insert records > individually, is it possible to use an easier way such as having a number of > records in an external file and inserting them all at once? > > Thank you. > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070820/d7f24804/attachment.html