From: Alan Chen Date: 2003-02-01T03:21:31+09:00 Subject: Re: [newbie] ruby-dbi that's funny, for postgres I've been using this as the connection string: "DBI:Pg:dbname=mydatabase;host=myhost.com" Are these just two equivalent forms, or is the connection string DBD dependent after the DBI:Driver: part of the string? On Sat, Feb 01, 2003 at 02:26:45AM +0900, Travis Whitton wrote: > > how to connect to a remote DB server? > > require 'dbi' > dbh = DBI.connect("DBI:Mysql:mydatabase:myhost.com", "someuser", "somepass") > > Substitute myhost.com with the address of your remote server. You also need to > have your remote SQL server setup to listen through a socket. -- Alan Chen Digikata Computing http://digikata.com