Forum: Ruby on Rails error when trying to create mysql database

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D4866d87a0ada27ce67b707bc56e460b?d=identicon&s=25 Adam Teale (ateale)
on 2007-01-17 06:49
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?


6329e9ce6b0c23f8bcf64a6c46a2bb81?d=identicon&s=25 matt (Guest)
on 2007-01-17 07:11
(Received via mailing list)
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

Good Luck
This topic is locked and can not be replied to.