[MacPorts] #40018: Error in mysqld_safe script prevents startup
#40018: Error in mysqld_safe script prevents startup ---------------------------+-------------------------------- Reporter: modemmonkey@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: percona ---------------------------+-------------------------------- In the most recent version of the percona port (percona @5.5.32-31.0_0), there is a bug in the mysqld_safe script that prevents MySQL from starting up. Upon running it, it gives the following error: {{{ /opt/local/lib/percona/bin/mysqld_safe: line 734: syntax error near unexpected token `then' /opt/local/lib/percona/bin/mysqld_safe: line 734: ` then # The pid contains a mysqld process' }}} Looking into the script, there is an IF statement on line 733 that has no condition, and I'm assuming that's the issue. I've worked around this by re-activating a previous version of the port, but it's going to be a pain for users who are installing it for the first time. -- Ticket URL: <https://trac.macports.org/ticket/40018> MacPorts <http://www.macports.org/> Ports system for OS X
#40018: Error in mysqld_safe script prevents startup ----------------------------+--------------------- Reporter: modemmonkey@… | Owner: quest@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: percona | ----------------------------+--------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => quest@… * priority: High => Normal Comment: In the future, please Cc the port maintainer(s) and do not set the Priority field. -- Ticket URL: <https://trac.macports.org/ticket/40018#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40018: Error in mysqld_safe script prevents startup ----------------------------+--------------------- Reporter: modemmonkey@… | Owner: quest@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: percona | ----------------------------+--------------------- Comment (by pc@…): I've changed the code at line 723 from {{{ if kill -0 $PID > /dev/null 2> /dev/null then if then # The pid contains a mysqld process log_error "A mysqld process already exists" exit 1 fi fi }}} to {{{ if kill -0 $PID > /dev/null 2> /dev/null then if ps -ef | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID > /dev/null then # The pid contains a mysqld process log_error "A mysqld process already exists" exit 1 fi fi }}} The ps line was taken from the previous release. -- Ticket URL: <https://trac.macports.org/ticket/40018#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40018: Error in mysqld_safe script prevents startup ----------------------------+--------------------- Reporter: modemmonkey@… | Owner: quest@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: percona | ----------------------------+--------------------- Comment (by parzley@…): I get the same for mysql55-server @5.5.33: {{{ /opt/local/lib/mysql55/bin/mysqld_safe: line 726: syntax error near unexpected token `then' /opt/local/lib/mysql55/bin/mysqld_safe: line 726: ` then # The pid contains a mysqld process' }}} and with mariadb-server @5.5.32 {{{ /opt/local/lib/mariadb/bin/mysqld_safe: line 748: syntax error near unexpected token `then' /opt/local/lib/mariadb/bin/mysqld_safe: line 748: ` then # The pid contains a mysqld process' }}} -- Ticket URL: <https://trac.macports.org/ticket/40018#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts