<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<br class=""><br class="">Thank you for the information.<br class="">Are you referring to a&nbsp;mysql.sock or a&nbsp;mysqld.sock&nbsp;file?<br class=""><div class="">The problem was that there was no mysql.sock file anyware in my computer.<div class="">The only socket file I could find was a mysqld.sock one.<br class="">To generate the mysql.sock, I included the code below in the my.cnf file.</div><div class=""><br class=""><div class="">[client]</div><div class="">port=3306</div><div class="">socket=/tmp/mysql.sock</div><div class=""><br class=""></div><div class="">[mysqld]</div><div class="">port=3306</div><div class="">socket=/tmp/mysql.sock</div><div class="">key_buffer_size=16M</div><div class="">max_allowed_packet=8M</div><div class=""><br class=""></div><div class="">[mysqldump]</div><div class="">quick</div><div class=""><br class=""></div>Now it works, no error is generated.</div><div class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 7 Sep 2016, at 16:43, Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">On Sep 6, 2016, at 8:33 AM, Ignatios Athanasiadis &lt;<a href="mailto:ignathanas@gmail.com" class="">ignathanas@gmail.com</a>&gt; wrote:<br class=""><br class="">Hi all,<br class=""><br class="">I have followed the links below to generate a phpmyadmin server and link it to mysql.<br class=""><br class=""><a href="https://trac.macports.org/wiki/howto/Apache2" class="">https://trac.macports.org/wiki/howto/Apache2</a><br class="">https://trac.macports.org/wiki/howto/MySQL<br class="">https://trac.macports.org/wiki/howto/PHP<br class="">https://trac.macports.org/wiki/howto/MAMP<br class=""><br class="">and https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/<br class=""><br class="">However I am getting the error :&nbsp;<br class="">#2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).<br class=""><br class="">As stated in the last link I try to make a link to mysql.sock as:<br class="">sudo mkdir /var/mysql<br class="">sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock<br class="">However, there is no file mysql.sock in /tmp/.<br class=""><br class="">Do you have any suggestions?<br class="">Thank you very much in advance.<br class=""></blockquote><br class="">I think the third-party instructions you're referring to are talking about a non-MacPorts version of MySQL, which may put its socket file in a different location. MacPorts MySQL&nbsp;versions don't put their socket in either /tmp or /var/mysql nor is there a good reason for you to try to make it do so. Just use the socket file from the location where MacPorts puts&nbsp;it.<br class=""></blockquote><br class=""></div></div></body></html>