When I try to connect to mysql which I installed using MacPorts, I get this error
Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (20)
When I run which mysql, I get this output /opt/local/bin/mysql.
How to I rectify this situation? I am running on Mac OSX Lion
Perhaps this page has the answer; search for “can’t connect”.
And may be http://ocdevel.com/blog/mycnf-order-precedence