Opened 4 years ago
Closed 4 years ago
#61267 closed defect (fixed)
mysql8: mysqld_safe: line 810: syntax error near unexpected token `then'
Reported by: | murrayE | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.3 |
Keywords: | Cc: | ||
Port: | mysql8-server |
Description
After installing mysql8-server, I tried running it with command:
sudo /opt/local/share/mysql8/support-files/mysql.server start
After the prompt for, and giving, my password, the following happens:
Starting MySQL ./opt/local/bin/mysqld_safe: line 810: syntax error near unexpected token `then' /opt/local/bin/mysqld_safe: line 810: ` then # The pid contains a mysqld process' ERROR! The server quit without updating PID file (/opt/local/var/run/mysqld/mysqld.pid).
Change History (3)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Cc: | herbygillot removed |
---|---|
Keywords: | syntax error removed |
Owner: | set to herbygillot |
Status: | new → assigned |
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Error in mysqld_safe from mysql8-server → mysql8: mysqld_safe: line 810: syntax error near unexpected token `then' |
---|
comment:3 Changed 4 years ago by herbygillot (Herby Gillot)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
I agree, there is a syntax error in mysqld_safe. Line 802 through 812 are:
There should be something after that
if
on line 809.In the original source code, those lines in scripts/mysqld_safe.sh are:
So evidently the placeholder
@FIND_PROC@
is getting replaced with the empty string, and should be getting replaced with something else instead.