https://www.cnblogs.com/secretmrj/p/15600144.html

安全后台启动MySQL


# 完整命令
/usr/local/mysql8/bin/mysqld_safe --defaults-file=/usr/local/etc/my.cnf &
# 添加PATH变量后的命令(省略bin目录的路径)
mysqld_safe --defaults-file=/usr/local/etc/my.cnf &