Unable to start mysql91-server

Running: FreeBSD 14.3-RELEASE-p3. This is on a fresh installation of FreeBSD.
I have installed both mysql91-server and mysql91-client using poudriere. The installation seemed to go correctly. The problem now is that I am unable to start MySQL.

Servicer mysql-server start
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql

I have not been able to determine the cause of the problem. I have Googled for an answer, but none of the ones I found work. I removed and reinstalled both the server and the client; however, the problem still exists.
 
Running: FreeBSD 14.3-RELEASE-p3. This is on a fresh installation of FreeBSD.
I have installed both mysql91-server and mysql91-client using poudriere. The installation seemed to go correctly. The problem now is that I am unable to start MySQL.

Servicer mysql-server start
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql

I have not been able to determine the cause of the problem. I have Googled for an answer, but none of the ones I found work. I removed and reinstalled both the server and the client; however, the problem still exists.
I do not know the answer but I search on the forum and find:
https://forums.freebsd.org/search/4...RNING:+failed+precmd+routine+for+mysql&o=date
 
Servicer mysql-server start
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql
Have you tried finding the problem?

Take that file (which is just a script), look at the precmd section, and debug it. For example by adding print statements (echo) after every line, by printing the result or return code from every command used in there, standard debugging techniques.
 
Precmd typically fails because /var/db/mysql/ isn't completely empty.
 
Back
Top