phpmyadmin 2002 Error, mysql.sock.lock seems to have taken the place of mysql.sock file
<p>Hi I just downloaded mysql 5.7.13 for OS X 10.11, and I am having issue getting phpmyadmin to connect with it.</p>
<p>I was able to fully install mysql, turn on the mysql server and set the root password. I then went to set up phpmyadmin which i was able to do successfully but when i go to log into phpmyadmin using my root password I get this error message:</p>
<blockquote>
<h1>2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).</h1>
</blockquote>
<p>and also this error</p>
<blockquote>
<p>mysqli_real_connect(): (HY000/2002): No such file or directory&quot;</p>
</blockquote>
<p>My laptop is acting as the server and client in this system by the way.</p>
<p>host = localhost</p>
<p>port = 3306</p>
<p>When I searched for my mysql.sock file I didn't find it but I found a file named mysql.sock.lock in /tmp Directory,why does mysql.sock.lock appear in /tmp and not mysql.sock, I believe that this is a big part of the issue but Im not sure how to fix it.</p>
<p>Also I saw that OS X looks for the mysql.sock file in var/mysql/ so i created an alias there for mysql.sock.lock, and restarted the server but this did nothing.</p>
<p>Any help with this error will be appreciated!</p>
<p>Thank you very much!</p>
<p>I apologize if this is worded weird Im pretty new to programming, Im just beginning to learn all these things.</p>