Code:
root@freebsd:/ # sysrc mysql_enable="yes"
mysql_enable: -> yes
root@freebsd:/ # service mysql-server start
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql
root@freebsd:/ #
freebsd.err
Code:
240729 05:54:36 mysqld_safe Logging to '/var/db/mysql/freebsd.err'.
240729 05:54:36 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
/usr/local/libexec/mysqld: 1: Syntax error: ")" unexpected
/usr/local/libexec/mysqld: 1: Syntax error: Error in command substitution
240729 05:54:36 mysqld_safe mysqld from pid file /var/db/mysql/freebsd.pid ended
I tested FREEBSD13.4, MySQL 8.0, 8.1, and 5.6 using Raspberry Pi 4B and found that they all failed to start
Unable to locate the problem.