in your config/database.yml file, add the line
socket: /var/lib/mysql/mysql.sock
or whatever your mysql.sock location is
$ find / -name "mysql\.sock"
should find it for you. It does a find from the root dir for the file
mysql.sock
Good Luck
Matt
On Wed, 2007-01-17 at 06:49 +0100, Adam Teale wrote:> hey guys
>
> My macbook pro 17 had to be taken back to apple beuase of a dud screen,
> so have had to install from macports again.
>
> When i attempt to create a mysql database with this:
>
> mysql5 -u root depot_development
>
> i get this:
>
> ERROR 2002 (HY000): Can''t connect to local MySQL server through
socket
> ''/opt/local/var/run/mysql5/mysqld.sock'' (2)
>
> any ideas?
>
> cheers!
>
> Adam
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---