M
Martin Uruz
hi
i hav a problem with database access to a mysql database i use this code:
#!/usr/bin/ruby
require "dbi"
DBI.connect("DBI:Mysql:logs",
"rubychan", "Rubin") { |conn|
}
and i get the following error:
/dbi/dbi.rb:490:in `load_driver': is not a class/module (TypeError)
from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in
`_get_full_driver'
from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect'
from ./dbtest.rb:5
can someone help me i am new in ruby
--
thx
martin pfeffer
at
suse 9.0
Apache 2.0
http://eurowalker.is.dreaming.org
i hav a problem with database access to a mysql database i use this code:
#!/usr/bin/ruby
require "dbi"
DBI.connect("DBI:Mysql:logs",
"rubychan", "Rubin") { |conn|
}
and i get the following error:
/dbi/dbi.rb:490:in `load_driver': is not a class/module (TypeError)
from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in
`_get_full_driver'
from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect'
from ./dbtest.rb:5
can someone help me i am new in ruby
--
thx
martin pfeffer
at
suse 9.0
Apache 2.0
http://eurowalker.is.dreaming.org