Weird on rails message

I’m a newbie trying to get started. Running os 10.5. Installed rails
2.0, i think, but i’m getting a weird error message when i click
“about your environment”

Here it is. Any help would be great

Errno::ENOENT in Rails/infoController#properties

No such file or directory - /tmp/mysql.sock
RAILS_ROOT: /Users/mikemckenna/Desktop/corp/newapp
Application Trace | Framework Trace | Full Trace
Request

Parameters:
None
Show session dump
Response

Headers:
{“cookie”=>[],
“Cache-Control”=>“no-cache”}

On Feb 12, 2008 3:58 PM, dutch [email protected] wrote:

I’m a newbie trying to get started. Running os 10.5. Installed rails
2.0, i think, but i’m getting a weird error message when i click
“about your environment”

No such file or directory - /tmp/mysql.sock

So is MySQL 1) installed, 2) running, and 3) using that socket? :slight_smile:


Hassan S. ------------------------ [email protected]

  1. yes 2) yes 3) no idea–how can i check that?

On Feb 12, 9:14 pm, “Hassan S.” [email protected]

On Feb 12, 2008 6:59 PM, dutch [email protected] wrote:

  1. yes 2) yes 3) no idea–how can i check that?

If you’re sure mysqld is running and it’s not using that socket,
connect using your mysql client and enter

mysql> show variables like ‘%sock%’;

That should give you something like:

±--------------±----------------+
| Variable_name | Value |
±--------------±----------------+
| socket | /tmp/mysql.sock |
±--------------±----------------+
1 row in set (0.34 sec)

:: though obviously with a different value :slight_smile:

Use that value in your database configuration.

HTH!

Hassan S. ------------------------ [email protected]

Can you actually verify that /tmp/mysql.sock exists on your computer?
Something tells me it doesn’t. You should try to locate which socket is
being used. On my computer (I installed mysql through macports), it is
in an entirely different area.

Bummer— it is showing it as /tmp/mysql.sock…

On Feb 12, 10:07 pm, “Hassan S.” [email protected]