From: vikram Hosamane Date: 2011-10-15T15:21:17+09:00 Subject: Re: Ruby and MySQl Hi, Following is the program for database connection require 'rubygems' require 'dbi' dbh = DBI.connect('DBI:mysql:ruby', 'root', 'root') if dbh puts "database connected successfully" else puts "database should not connect" end dbh.disconnect When I try to run the above code for database connection i got errors which i have attached. please help me to overcome this problem. Attachments: http://www.ruby-forum.com/attachment/6679/d.png -- Posted via http://www.ruby-forum.com/.