Rake Migration Problem

I am using RailsLive CD that has PC Linux OS. I am able to bring up the
MySQL server. I can create databases. But
when I run Rake migration task, I get:
rake aborted!
Can’t connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock
error message.

I also tried the AWDWR suggestion and included:
socket: /var/lib/mysql/mysql.sock
in the database.yml file

I get the same error. There is no mysql.sock file in /var/lib/mysql/
directory.
Can someone please help? TIA.

On Wed, 2006-11-15 at 10:48 -0500, Bala P. wrote:

in the database.yml file
I get the same error. There is no mysql.sock file in /var/lib/mysql/
directory.
Can someone please help? TIA.


depends upon how mysql is configured…

try this…what is output of?

lsof | grep mysql.sock

that should tell you if/where mysql.sock file is located

Craig

Thanks for the suggestion. When I type lsof, it says that it’s not a
command. ls | grep mysql.sock does not return anything.

depends upon how mysql is configured…