<div dir="auto">Hello Murray,<div dir="auto"><br></div><div dir="auto">Instructions for setting up mysql8-server after installation with MacPorts are shown in the console right after installation.</div><div dir="auto"><br></div><div dir="auto">You can review these using 'port notes':</div><div dir="auto"><br></div><div dir="auto">$ port notes mysql8-server</div><div dir="auto"><br></div><div dir="auto">Then you would start the mysql8-server service using 'port load':</div><div dir="auto"><br></div><div dir="auto">$ sudo port load mysql8-server</div><div dir="auto"><br></div><div dir="auto">To stop and disable the service, use 'port unload':</div><div dir="auto"><br></div><div dir="auto">$ sudo port unload mysql8-server</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 3, 2020, 13:38 MacPorts <<a href="mailto:noreply@macports.org">noreply@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#61267: Error in mysqld_safe from mysql8-server<br>
--------------------------+---------------------------<br>
Reporter: murrayE | Owner: (none)<br>
Type: defect | Status: new<br>
Priority: Normal | Milestone:<br>
Component: ports | Version: 2.6.3<br>
Keywords: syntax error | Port: mysql8-server<br>
--------------------------+---------------------------<br>
After installing mysql8-server, I tried running it with command:<br>
<br>
{{{<br>
sudo /opt/local/share/mysql8/support-files/mysql.server start<br>
}}}<br>
<br>
After the prompt for, and giving, my password, the following happens:<br>
<br>
{{{<br>
Starting MySQL<br>
./opt/local/bin/mysqld_safe: line 810: syntax error near unexpected token<br>
`then'<br>
/opt/local/bin/mysqld_safe: line 810: ` then # The pid contains a<br>
mysqld process'<br>
ERROR! The server quit without updating PID file<br>
(/opt/local/var/run/mysqld/mysqld.pid).<br>
}}}<br>
<br>
-- <br>
Ticket URL: <<a href="https://trac.macports.org/ticket/61267" rel="noreferrer noreferrer" target="_blank">https://trac.macports.org/ticket/61267</a>><br>
MacPorts <<a href="https://www.macports.org/" rel="noreferrer noreferrer" target="_blank">https://www.macports.org/</a>><br>
Ports system for macOS<br>
</blockquote></div>