Ruby and database connection

any body know how to connect to mysql database in ruby?

···

--
Posted via http://www.ruby-forum.com/.

seid wrote:

any body know how to connect to mysql database in ruby?

http://ruby-dbi.rubyforge.org/
http://www.kitebird.com/articles/ruby-dbi.html

Enjoy.

Pistos

···

--
Posted via http://www.ruby-forum.com/\.

There are many ways to do this ... DBI, Og, ActiveRecord.
I found DBI difficult to get working. ActiveRecord was much easier. I
haven't tried Og yet, but it's on my list of things to do.

You'll find lots of information about using ActiveRecord on the web.
If you want to go with ActiveRecord and can't find a good example of
using it, I can send you one.

···

On 3/7/06, seid <seidma@hotmail.com> wrote:

any body know how to connect to mysql database in ruby?

--
R. Mark Volkmann
Partner, Object Computing, Inc.

seid wrote:

any body know how to connect to mysql database in ruby?

If you want to do anything more then connect, such as move data and present
views and you have even a remote understanding of MVC and understand
Ruby .. GET Rails!!!

john

Pistos Christou wrote:

seid wrote:
  

any body know how to connect to mysql database in ruby?
    
http://ruby-dbi.rubyforge.org/
http://www.kitebird.com/articles/ruby-dbi.html

Enjoy.

Pistos

Also this one for mysql specific:
http://www.kitebird.com/articles/ruby-mysql.html

-Justin