Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Unable to load driver 'Mysql' (underlying error: uninitializ
Arun Kumar
3/13/2009 5:08:00 AM
Hi,
I'm a freser to ruby and i'm trying to workout certain database related
examples using dbi. But when i run the file i receive an error :
Unable to load driver 'Mysql' (underlying error: uninitialized constant
DBI::DBD::MySql) (DBI::InterfaceError)
from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /home/arunkumar/.gem/ruby/1.8/gems/dbi-0.4.1/lib/dbi.rb:236:in
`load_driver'
from /home/arunkumar/.gem/ruby/1.8/gems/dbi-0.4.1/lib/dbi.rb:154:in
`_get_full_driver'
from /home/arunkumar/.gem/ruby/1.8/gems/dbi-0.4.1/lib/dbi.rb:139:in
`connect'
The error occurs from the line given to connect the mysql database. ie.
dbh = DBI.connect("DBI:MySql:Project:localhost",
"username", "password")
Can anybody please help me to solve this problem.
Regards
Arun Kumar .C.M.
Attachments:
http://www.ruby-...
attachment/34...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Unable to load driver 'Mysql' (underlying error: uninitializ
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password