项目场景:
Mysql 启动报错:
mysqld: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
# 启动mysql
systemctl start mysqld
问题描述:
# 查看启动日志
journalctl -xe
Sep 03 15:10:09 cluster-node-1 mysqld_pre_systemd[17180]: my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf
Sep 03 15:10:09 cluster-node-1 mysqld_pre_systemd[17180]: my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Sep 03 15:10:09 cluster-node-1 mysqld_pre_systemd[17180]: my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf
Sep 03 15:10:09 cluster-node