Billy wrote: > Hi, > > Win 2000, Ruby Installer 1.66-0. > > Trying to get talking to mysql. > > ODBC appears to load (i get a DatabaseError) > > E:/Ruby/lib/ruby/site_ruby/1.6/DBD/ODBC/ODBC.rb:71:in `connect': IM002 > (0) [Microsoft][ODBC Driver Manager] Data source name not found and no > default driver specified(DBI::DatabaseError) > So thats working ok. > > But mysql wont load. I get a InterfaceError. > > script is simply: > > require "dbi" > db = DBI.connect('DBI:Mysql:DTT2', 'root', 'blablabla') > db.disconnect > > I get: > > E:/Ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:426:in `load_driver': Could > not load driver (uninitialized constant Mysql at > DBI::DBD)(DBI::InterfaceError) > > Are there some files missing in this distribution or sumting? My disk > looks like: > > .... ruby\site_ruby\1.6\ => > > DBD > - Oracle > -- oracle.rb > - ODBC > -- odbc.rb > - Mysql > -- mysql.so > (Mysql contains mysql.so only. and I had to create mysql folder and > move mysql.so there as it wasn't there origionally - i checked dbd > spec.) The Mysql.rb file (MySQL DBD) is missing! You can get it manually from http://ruby-dbi.sf.net. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de