dbTalk Databases Forums  

help to guide how to access mysql through ruby

comp.databases.mysql comp.databases.mysql


Discuss help to guide how to access mysql through ruby in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
manimuthu4ruby
 
Posts: n/a

Default help to guide how to access mysql through ruby - 05-29-2012 , 01:18 AM






Hi i have ruby 1.9.2
and have installed dbi 0.4.5
when i tried to run a sample ruby file to get mysql version i got following erros.i have referred many sites,cannt clear,Plz guide me.
---------------------------------------------------------------
mmp@mmp-Lenovo-G560:~$ ruby simple.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- parsedate (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/site_ruby/1.9.1/dbi/sql.rb:9:in `<moduleBI>'
from /usr/local/lib/site_ruby/1.9.1/dbi/sql.rb:7:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/site_ruby/1.9.1/dbi.rb:37:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from simple.rb:4:in `<main>'
---------------------------------------------------------------
Hope u will help me to clear this...

Reply With Quote
  #2  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: help to guide how to access mysql through ruby - 05-29-2012 , 06:21 AM






On 5/29/2012 2:18 AM, manimuthu4ruby wrote:
Quote:
Hi i have ruby 1.9.2
and have installed dbi 0.4.5
when i tried to run a sample ruby file to get mysql version i got following erros.i have referred many sites,cannt clear,Plz guide me.
---------------------------------------------------------------
mmp@mmp-Lenovo-G560:~$ ruby simple.rb
internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- parsedate (LoadError)
from<internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/site_ruby/1.9.1/dbi/sql.rb:9:in `<moduleBI>'
from /usr/local/lib/site_ruby/1.9.1/dbi/sql.rb:7:in `<top (required)>'
from<internal:lib/rubygems/custom_require>:29:in `require'
from<internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/site_ruby/1.9.1/dbi.rb:37:in `<top (required)>'
from<internal:lib/rubygems/custom_require>:29:in `require'
from<internal:lib/rubygems/custom_require>:29:in `require'
from simple.rb:4:in `<main>'
---------------------------------------------------------------
Hope u will help me to clear this...


You should be asking Ruby support. Nothing here suggests a MySQL
problem, but everything suggests a Ruby problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #3  
Old   
manimuthu4ruby
 
Posts: n/a

Default RE: help to guide how to access mysql through ruby - 05-29-2012 , 07:16 PM



Thanks for ur reply.
have installed dbi to connect ruby with mysql...But still cannt connect..
How to connect to ruby with mysql.......

Reply With Quote
  #4  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: help to guide how to access mysql through ruby - 05-29-2012 , 09:01 PM



On 5/29/2012 8:16 PM, manimuthu4ruby wrote:
Quote:
Thanks for ur reply.
have installed dbi to connect ruby with mysql...But still cannt connect..
How to connect to ruby with mysql.......


You do have a MySQL server installed and running, don't you?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #5  
Old   
manimuthu4ruby
 
Posts: n/a

Default RE: help to guide how to access mysql through ruby - 05-30-2012 , 12:36 PM



yes i have mysql and running well..

Reply With Quote
  #6  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: help to guide how to access mysql through ruby - 05-30-2012 , 02:07 PM



On 5/30/2012 1:36 PM, manimuthu4ruby wrote:
Quote:
yes i have mysql and running well..


OK, then you need to be following up in the Ruby support groups.
Nothing here indicates a MySQL problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #7  
Old   
manimuthu4ruby
 
Posts: n/a

Default RE: help to guide how to access mysql through ruby - 05-30-2012 , 10:56 PM



I got solution myself.....thanks to comgroups.net

Reply With Quote
  #8  
Old   
link285
 
Posts: n/a

Default RE: help to guide how to access mysql through ruby - 05-31-2012 , 08:47 PM



could you let us know what was the issue and how you solve?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.