From: Kai Nitschke Date: 2007-06-09T22:15:03+09:00 Subject: Re: Newbie question about MySQL on Windows XP Pro I think you need to include 'rubygems' as well like this: require 'rubygems' require 'dbi' Hope that helps :) Grehom wrote: > > I then tried running this ruby script: > > require 'dbi' > > db_name = "cookbook" > host_name = "localhost" > user_name = "cb_user" > password = "cb_pass" > dsn = "DBI:mysql:host=#{host_name};database=#{db_name}" > > # Connect to a database, old style > dbh = DBI.connect(dsn, user_name, password) > > # And finally, disconnect > dbh.disconnect >