MySQL - Can't connect to local MYSQL server...ERROR 2002?
<p>Hi I've looked all over the internet to find an answer to this problem but nothing seems to work. I get the below problem when I try to log in to mysql on terminal in OSX El Capitan. </p>

<p>The server is running. </p>

<p><a href="https://i.stack.imgur.com/VdkPD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VdkPD.png" alt="enter image description here"></a></p>

<p>What should I do, I've spent 5 hours trying to figure this out before posting this. I cannot find the my.cnf file in /etc and I'm not sure what to do with it. Someone please help. </p>

<p>Edit: </p>

<p>I've downloaded and installed(just double clicking - no terminal) this: 
<a href="https://i.stack.imgur.com/Ivkrd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ivkrd.png" alt="enter image description here"></a></p>

<p>When everything is installed and i go into /usr/local/mysql/bin/ and try mysql -u root -p I get the following error:
<a href="https://i.stack.imgur.com/ev4pb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ev4pb.png" alt="enter image description here"></a></p>

<p>This is my my.cnf file in /etc:
<a href="https://i.stack.imgur.com/IZu5d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IZu5d.png" alt="enter image description here"></a></p>

<p>When I do sudo /usr/local/mysql/bin/mysqld_safe I get this:</p>

<p><a href="https://i.stack.imgur.com/J6ASG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J6ASG.png" alt="enter image description here"></a></p>

<p>df -h returns this, could it be something to do with space? 
<a href="https://i.stack.imgur.com/sXML4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sXML4.png" alt="enter image description here"></a></p>