From: "alpha.chen@..." Date: 2007-03-13T14:30:06+09:00 Subject: Re: Newbie: best way to connect to MySQL? On Mar 12, 6:43 pm, KDr2 wrote: > "planetthoughtful" writes: > > On Mar 13, 10:33 am, "kreiggers" wrote: > >> On Mar 12, 4:33 pm, "planetthoughtful" > >> wrote: > > >> > Is there a better way to connect to a MySQL server using Ruby than via > >> > ODBC? Is there a syntax for supplying user and password settings for > >> > the ODBC::connect statement above? Personally, I like using ActiveRecord to connect to databases. For basic database manipulation, it's a lot easier to use than straight up SQL, especially if your databases are configured the way AR wants them to be. If not, then there's some annoying setup work with set_* and joins that might be more hassle than it's worth, depending on what you're doing. Download here: http://rubyforge.org/projects/activerecord/ Documentation here: http://ar.rubyonrails.org/ --Alpha Chen