How to connect to Mysql & Query for Database Tables?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idealfellow
    New Member
    • Jan 2008
    • 21

    How to connect to Mysql & Query for Database Tables?

    Hi Guys,
    Ruby imposes several way of connecting to Mysql (DBI,activereco rd..) Database using ruby code. Let me know if anybody knows how to connect to mysql the easiest way.
    I am getting all sorts of error trying to connect to mysql. I am using Windows XP OS.
    Hope to hear from you guys soon!!

    Cheers
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    If you are using Rails, try activerecord. If just Ruby, probably go with DBI. What code are you using to connect? What errors are you getting?

    Comment

    • idealfellow
      New Member
      • Jan 2008
      • 21

      #3
      I got it working eventually ,after adding gem 'dbi' .


      thanks

      Comment

      Working...