I'm trying to write a script that uses FasterCSV.table and puts theresult in a MySQL database

Discussion in 'Ruby' started by Ronald Steckly, Apr 2, 2008.

  1. [Note: parts of this message were removed to make it a legal post.]

    Trouble is, I know how to do the CSV part. But I don't know how to do the
    MySQL part. How do I connect to a MySQL database? I mean, it seems
    intuitive on Rails with ActiveRecord, but in a script?

    Any ideas?

    Ron
     
    Ronald Steckly, Apr 2, 2008
    #1
    1. Advertising

  2. Ronald Steckly

    James Gray Guest

    Re: I'm trying to write a script that uses FasterCSV.table and putsthe result in a MySQL database

    On Apr 1, 2008, at 8:30 PM, Ronald Steckly wrote:

    > Trouble is, I know how to do the CSV part. But I don't know how to
    > do the
    > MySQL part. How do I connect to a MySQL database? I mean, it seems
    > intuitive on Rails with ActiveRecord, but in a script?


    You can use ActiveRecord without Rails:

    http://wiki.rubyonrails.org/rails/pages/HowToUseActiveRecordOutsideRails

    James Edward Gray II
     
    James Gray, Apr 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. julian
    Replies:
    8
    Views:
    516
    Avatar
    Apr 6, 2006
  2. Michael Brooks
    Replies:
    22
    Views:
    439
    Rick DeNatale
    Mar 27, 2007
  3. Raj Singh
    Replies:
    4
    Views:
    156
    Ryan Ingram
    Jan 29, 2008
  4. Cs Webgrl
    Replies:
    1
    Views:
    236
    James Edward Gray II
    Jul 1, 2010
  5. Sam
    Replies:
    4
    Views:
    89
    Mark Lawrence
    Jan 17, 2014
Loading...

Share This Page