dbh = DBI.connect("dbi:Mysql:test:localhost", "testuser", "testpass")
Ah yes, MySQL. You have some options:
1) Use ODBC. connect("dbi:odbc:your_mysql_db_dsn")
2) Get the pure-Ruby MySQL wrapper (I don't think you can use DBI with this, so
your code won't be portable to other DBMSes):
http://raa.ruby-lang.org/list.rhtml?name=ruby-mysql
3) Build Ruby/MySQL. That's non-trivial, and probably not an option if you're
not a C/C++ programmer.
By the way, these questions are the kinds of questions you will find better help
on general Ruby forums than this one:
* mailto:[EMAIL PROTECTED]
* news:comp.lang.ruby
* http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml
* irc://irc.freenode.net/ruby-talk
Cheers,
Dave
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general