From: Craig Demyanovich Date: 2008-05-01T21:21:45+09:00 Subject: Re: CANNOT get Ruby to work with SQL ------=_Part_4245_4938320.1209644494846 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Rails apps use a database configuration file, /config/database.yml. When using mysql, there's often a line in the file for each database like socket: /tmp/mysql.sock You could replace that path with the one from your error message, /var/lib/mysql/mysql.sock. Alternatively, you could just remove the "socket" lines from the file. I'm on Mac OS X, and I installed mysql via macports. I find that I don't need to specify the location of the socket, so I just delete that line. For future issues with Rails, you should consult the rails-talk mailing list, http://groups.google.com/group/rubyonrails-talk . Good luck, Craig ------=_Part_4245_4938320.1209644494846--