/opt/mysql/support-files/mysql.server start
my_print_defaults: [ERROR] Found option without preceding group in config file /opt/mysql/my.cnf at line 1!
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Starting MySQL. ERROR! The server quit without updating PID file (/opt/mysql/data/localhost.localdomain.pid).
在配置my.cnf文件时,需要在配置文件第一行加上[mysqld]组名。