John Joyce
7/25/2007 1:25:00 AM
On Jul 24, 2007, at 4:20 PM, Ben Bleything wrote:
> On Wed, Jul 25, 2007, Ari Brown wrote:
>> On Jul 24, 2007, at 4:34 PM, Travis D Warlick Jr wrote:
>>> It's saying that it can't find the MySQL socket. Check your
>>> connection
>>> configuratiosn for ActiveRecord. See the api for
>>> ActiveRecord::Base.establish_connection
>>
>> Thanks. Do you know why Mac OS X doesn't have /tmp/mysql.sock?
>
> The socket location is configurable, and I think by default it puts it
> somewhere in /var. If you installed via DP or Fink, it's probably
> somewhere else in /opt/local. Do a locate for mysql.sock and you
> might
> find it, otherwise go have a peek at your mysql config.
>
> Ben
>
did you install on OS X using the MySQL OS X installer?
if so, it comes with several GUI tools and a System Preferences pane
for starting and stopping the MySQL server app.
it's pretty cool and useful, and it is the best way to start/stop
MySQL on OS X.
you do also have to make sure ActiveRecord knows the username and
password for MySQL,
I don't know how to do this part outside of Rails.
I haven't tried using ActiveRecord independently of Rails, but as
cool and useful as it is in Rails, it must be equally great outside
of Rails. Sure beats using SQL all the time.