From: Travis D Warlick Jr Date: 2007-07-25T05:34:47+09:00 Subject: Re: ActiveRecord Problem -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ari Brown wrote: > Ugh. ActiveRecord is giving me a hard time. > > I go to connect to my mysql database on localhost, and I get rejected! > Actual IRB session: > character.rb(main):015:0* class Character < ActiveRecord::Base; end > => nil > character.rb(main):016:0> puts Character.find(:first).firstn > Errno::ENOENT: No such file or directory - /tmp/mysql.sock > from /usr/local/lib/ruby/1.8/mysql.rb:99:in `initialize' > from /usr/local/lib/ruby/1.8/mysql.rb:99:in `new' > > So, uh, what exactly is it saying? I just installed MySQL through the > directions (word for word) from the Apple website. 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 - -- Travis Warlick "Programming in Java is like dealing with your mom -- it's kind, forgiving, and gently chastising. Programming in C++ is like dealing with a disgruntled girlfriend -- it's cold, unforgiving, and doesn't tell you what you've done wrong." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGpmJbWvapaOIz2YYRAnlBAJ4yUoFYyf9p54mdWNcj6lfEt3R+/gCdF7o9 hTHp3KYKSZdnwb/Cz+Qddxo= =o3g3 -----END PGP SIGNATURE-----