From: Roger Pack Date: 2008-04-15T14:15:55+09:00 Subject: Re: Ruby DBI MySQL: how to specify protocol=tcp > mysql = DBI.connect('dbi:Mysql:database=dbname;port=3307', 'user', > 'pass') yeah try specifying the host as either '127.0.0.1' or 'localhost' -- one of the two ignores the sock. You can also take a look at http://code.google.com/p/ruby-roger-useful-functions/source/browse/trunk/syncer.rb for some nice references on how to build a solid version of what you're building. :) -- Posted via http://www.ruby-forum.com/.