[MacPorts] #40209: MySQL and MariaDB fail to start due to error in mysqld_safe
MacPorts
noreply at macports.org
Wed Aug 21 12:38:24 PDT 2013
#40209: MySQL and MariaDB fail to start due to error in mysqld_safe
----------------------------+--------------------------------
Reporter: stefanvignir@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Keywords: mysql, mariadb | Port:
----------------------------+--------------------------------
This affects mysql55-server, mysql56 and mariadb-server.
When starting MySQL or MariaDB using 'sudo cd /opt/local ;
/opt/local/lib/mysql56/bin/mysqld_safe &', what gets returned is:
{{{
130821 19:33:51 mysqld_safe Logging to '/opt/local/var/db/mysql56/Stefans-
MacBook-Pro.local.err'.
touch: /opt/local/var/db/mysql56/Stefans-MacBook-Pro.local.err: Permission
denied
chmod: /opt/local/var/db/mysql56/Stefans-MacBook-Pro.local.err: No such
file or directory
/opt/local/lib/mysql56/bin/mysqld_safe: line 726: syntax error near
unexpected token `then'
/opt/local/lib/mysql56/bin/mysqld_safe: line 726: ` then # The pid
contains a mysqld process'
}}}
Lines 725-729 in /opt/local/lib/mysql56/bin/mysqld_safe seem to have an
obvious syntax error:
{{{
if
then # The pid contains a mysqld process
log_error "A mysqld process already exists"
exit 1
fi
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40209>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list