You might not have installed mysql. check if mysql is there in the list displayed using 'gem list' On Tue, Aug 3, 2010 at 3:34 PM, madhu kumar <[email protected]> wrote:
> Hi padma, > > if i type require 'mysql' its coming no such file to load. can i know whats > the proble. > > Regards, > Madhu > > > On Tue, Aug 3, 2010 at 2:56 PM, Padma Reddy <[email protected]> wrote: > >> Hi Madhu, >> >> Make sure that mysql is installed on the machine from where you want to >> execute the ruby script. >> Do 'gem install mysql' (if this dont work, download mysql and then >> install). ( 'gem list' check if mysql is there) >> >> try this in your script: >> >> require 'mysql' >> my = Mysql.new('IP', 'mysql username', 'password', 'database name') >> >> Hope this will help you. >> >> On Tue, Aug 3, 2010 at 2:41 PM, madhu kumar <[email protected]>wrote: >> >>> HI, >>> >>> Can anyone let me know how to connect to mysql database using Ruby. >>> >>> Regards, >>> Madhu >>> >>> >>> On Tue, Aug 3, 2010 at 2:19 PM, Željko Filipin < >>> [email protected]> wrote: >>> >>>> 2010/8/3 madhu kumar <[email protected]> >>>> >>>> > This is travel site just go through this Link www.cleartrip.com >>>> >>>> And you really thought it would be easier for us to debug your problem >>>> with screen shot, instead of sending us the URL?! >>>> >>>> See how fast you got the answer once you have sent the URL? >>>> >>>> require "rubygems" >>>> require "watir" >>>> browser = Watir::Browser.start("http://www.cleartrip.com/") >>>> browser.image(:alt => "Calendar").click >>>> browser.cell(:text => "4").link(:index => 1).click >>>> # 4/8/2010 is selected >>>> >>>> Željko >>>> >>>> -- >>>> Before posting, please read http://watir.com/support. In short: search >>>> before you ask, be nice. >>>> >>>> You received this message because you are subscribed to >>>> http://groups.google.com/group/watir-general >>>> To post: [email protected] >>>> To unsubscribe: >>>> [email protected]<watir-general%[email protected]> >>>> >>> >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> You received this message because you are subscribed to >>> http://groups.google.com/group/watir-general >>> To post: [email protected] >>> To unsubscribe: >>> [email protected]<watir-general%[email protected]> >>> >> >> >> >> -- >> Padma:) >> >> "Don't let someone become a priority in your life, when you are just an >> option in their life.. Relationships work best when they are balanced! :-)" >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> You received this message because you are subscribed to >> http://groups.google.com/group/watir-general >> To post: [email protected] >> To unsubscribe: >> [email protected]<watir-general%[email protected]> >> > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: [email protected] > To unsubscribe: > [email protected]<watir-general%[email protected]> > -- Padma:) "Don't let someone become a priority in your life, when you are just an option in their life.. Relationships work best when they are balanced! :-)" -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
