<div dir="ltr">Hi folks,<div><br></div><div>in the instructions at <a href="https://trac.macports.org/wiki/howto/MySQL">https://trac.macports.org/wiki/howto/MySQL</a> (written to MySQL56, though I&#39;m using the same instructions to install MySQL57 instead), it says to run</div><div><br></div><div>      <span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">sudo -u _mysql mysql_install_db</span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">Doing so for MySQL57 gives the message:</span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">     </span>[WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize</div><div><br></div><div>I tried</div><div><br></div><div>    sudo -u _mysql mysqld --initialize</div><div><br></div><div>but that gave me </div><div><br></div><div>    [ERROR] --initialize specified but the data directory has files in it. Aborting.</div><div><br></div><div>which appears to be true.... Is there a different command I should be using, or are there some missing options which need to be specified?</div><div><br></div><div>When I load MySQL and try to connect I get</div><div><br></div><div>     Can&#39;t connect to local MySQL server through socket &#39;/opt/local/var/run/mysql57/mysqld.sock&#39; (2)</div><div><br></div><div>Any hints on where I&#39;m going wrong?</div><div><br></div><div>Thanks   </div>































<div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div></div>