Can't connect to local MySQL server error
ryandesign at macports.org
Sun Aug 5 01:17:44 PDT 2012
On Aug 5, 2012, at 02:05, Rodolfo Aramayo <raramayo at gmail.com> wrote:
> I have followed the instructions outlined in the document:
> And I can see my test web site and the output of phpinfo.php but I am
> consistently getting the following error:
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/opt/local/var/run/mysql5/mysqld.sock' (2)
> which I have tried to correct unsuccessfully. Both mysql and php are
> pointing to the same directory: /opt/local/var/run/mysql5/
You are trying to start the MySQL server provided by the mysql5 / mysql5-server ports, yes?
Is the server running? that is, is the mysqld process running, as seen using "ps" or Activity Monitor?
If not, does the MySQL log file say anything about why that is?
More information about the macports-users