A
Ari Brown
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.
Ruby 1.8.6, Mac, OS X powerpc
Thanks,
aRi
-------------------------------------------|
Nietzsche is my copilot
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
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.
Ruby 1.8.6, Mac, OS X powerpc
Thanks,
aRi
-------------------------------------------|
Nietzsche is my copilot