Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2020 17:25:24 +0000 (UTC)
From:      doug <doug@fledge.watson.org>
To:        wa5qjh <wa5qjh@xmission.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: service mysql start 
Message-ID:  <alpine.BSF.2.21.9999.2010131717520.72530@fledge.watson.org>
In-Reply-To: <28048DED-1A4C-41E7-A1D1-582482285629@xmission.com>
References:  <28048DED-1A4C-41E7-A1D1-582482285629@xmission.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 Oct 2020, wa5qjh wrote:

> Prints Starting mysql.
> Delays briefly then prints
>  then: then/endif not found
>
> And mysql not started. Upon reboot you see in the message
>  then: then/endif not found
> Indeed, in /usr/local/etc/mysql/mysql-server file there are many "then" but no "endif".
> And I'm just guessing thats where the problem is. I dont really know
>
> So, is there a way to start mysql server any other way?
> I just ran freebsd-update upgrade -r 12.1  from a zfs based 11.2 installation followed by pkg upgrade -f  to hopefully bring the system up to a useable 12.1 system. The first time sinceFreeBSD 1.5 to try this.
>
> Gary Corell
> Ya gotta see time beyond the end of your nose

First endif is a csh construct. The local rc.d scripts are written in sh 
and should start with `#!/bin/sh`. That said use `mysqld --verbose --help` 
to see how to start mysql manually. `man -k mysql` gives more info. As a 
last resort: https://dev.mysql.com/doc/ :)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.9999.2010131717520.72530>