Forum: Ruby ruby and database connection

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dc0de2534c1bdf487962766906e778f6?d=identicon&s=25 seid (Guest)
on 2006-03-07 20:37
any body know how to connect to mysql database in ruby?
A402df36168b81b31c17adcbb5ae8cf4?d=identicon&s=25 Pistos Christou (pistos)
on 2006-03-07 21:06
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
52a177e9dbd3e614825aabc4e45f8cd6?d=identicon&s=25 Mark Volkmann (Guest)
on 2006-03-07 21:10
(Received via mailing list)
On 3/7/06, seid <seidma@hotmail.com> wrote:
> any body know how to connect to mysql database in ruby?

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.
F3b7109c91841c7106784d229418f5dd?d=identicon&s=25 Justin Collins (Guest)
on 2006-03-07 21:45
(Received via mailing list)
Pistos Christou wrote:
> Pistos
>
>
Also this one for mysql specific:
http://www.kitebird.com/articles/ruby-mysql.html

-Justin
B2561fdd05855be51aca982c54eb9f81?d=identicon&s=25 John N. Alegre (Guest)
on 2006-03-10 17:07
(Received via mailing list)
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
This topic is locked and can not be replied to.