# 

**URL:** <https://rubytalk.org/t/topic/8533>\
**Category:** ruby-talk\
**Created:** [15 October 2003 15:41 UTC](https://rubytalk.org/t/topic/8533 "2003-10-15T15:41:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mills\_Thomas\_app1tam](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mills\_Thomas\_app1tam](https://rubytalk.org/u/Mills_Thomas_app1tam)\
**Post date:** [15 October 2003 15:41 UTC](https://rubytalk.org/t/topic/8533/1 "2003-10-15T15:41:58Z")

</div>

I had the exact same problem. My guess is that you are either missing some  
MySQL-DBI code or the permissions on the files are incorrect.

Unfortunately, I did not know how to fix the problem by hand. So I deleted  
MySQL as installed by Mandrake (my Linux distribution at home) and  
re-installed MySQL from a download I found at [mysql.com](http://mysql.com).

Then I installed the Ruby-DBI package  
([Download ruby-dbi-all-0.0.21.tar.gz (Ruby DBI)](http://prdownloads.sourceforge.net/ruby-dbi/ruby-dbi-all-0.0.21.tar.gz?down)  
load) and everything started working.

Several years ago this would have been called the ‘hammer and tongs’ method,  
but it worked for me.

Drew

> **···**
>
> > -----Original Message-----  
> > From: Sabyasachi Mustafi [[mailto:sabymus@rediffmail.com](mailto:sabymus@rediffmail.com)]  
> > Sent: Saturday, September 06, 2003 5:15 AM  
> > To: [ruby-talk@ruby-lang.org](mailto:ruby-talk@ruby-lang.org)  
> > Subject:
> > 
> > ```
> > I am trying to connect to a mysql database with ruby and 
> > 
> > ```
> > 
> > showing the data in text boxes using Tk. But the following error  
> > is coming. Is there any problem with the dbi itself or the problem  
> > lies in the code? If you want then I can send the codes, just two  
> > pages. Please help me as soon as possible.
> > 
> > Thanks,  
> > Sabyasachi Mustafi
> > 
> > Error:  
> > /usr/local/lib/ruby/site\_ruby/1.8/dbi/dbi.rb: 490  
> > :in `load\_driver’: is not a class/module
> > 
> > ## Stack Trace for Error
> > 
> > /usr/local/lib/ruby/site\_ruby/1.8/dbi/dbi.rb:490:in `load\_driver’:  
> > is not a class/module  
> > while executing  
> > “rb\_out c00003”  
> > invoked from within  
> > “.w00005 invoke”  
> > (“uplevel” body line 1)  
> > invoked from within  
> > “uplevel #0 [list $w invoke]”  
> > (procedure “tkButtonUp” line 7)  
> > invoked from within  
> > "tkButtonUp .w00005  
> > "  
> > (command bound to event)
> > 
> > * * *
> > 
> > Law meets Electronics; Veena Weds Sanjay.  
> > Rediff Matchmaker strikes another interesting match !!  
> > Visit [http://rediff.com/matchmaker?1](http://rediff.com/matchmaker?1)
