From: Michael Neumann Date: 2001-06-23T02:31:34+09:00 Subject: [ruby-talk:16776] Re: DBI 0.0.5 problem Krzysztof P. Jasiutowicz wrote: > On 22-06-2001, Michael Neumann wrote thusly : > > Krzysztof P. Jasiutowicz wrote: > > > Could someone please explain why all my DBI scripts are failing ? > > > With an error : > > > /usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:289:in `load_driver': Could not load > > > driver (No such file to load -- mysql) (DBI::InterfaceError) > > > from /usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:252:in `connect' > > > from x.rb:4 > > The DBD is named "Mysql" not "mysql" (like Perl). > And I am calling this DBD like this in x.rb file : > dbh = DBI.connect('DBI:Mysql:test', '', '') > > so why does it report 'mysql' file error ? Ah, I know where your problem lies. You have to install the "mysql" module by TOMITA Masahiro from RAA (Ruby Application Archive) or from http://www.tmtm.org/mysql/. The Mysql-DBD require this. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de