ubuntu系统安装LAMP环境,编译MySQL时遇到的问题
程序员文章站
2022-04-08 12:37:53
...
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
. * The server quit without updating PID file (/opt/mysql/data/ZenPHP.pid).
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Starting MySQL
. * The server quit without updating PID file (/opt/mysql/data/ZenPHP.pid).
回复内容:
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
. * The server quit without updating PID file (/opt/mysql/data/ZenPHP.pid).
从以下方法尝试下
检查目录权限 /opt/mysql/data/,确保读写权限
删除err文件
设置 selinux 状态
检查 mysql 文件夹的用户是否为 mysql
上一篇: 一个朋友去新浪乐居应聘时的面试题