>  기사  >  백엔드 개발  >  ubuntu系统安装LAMP环境,编译MySQL时遇到的问题

ubuntu系统安装LAMP环境,编译MySQL时遇到的问题

WBOY
WBOY원래의
2016-07-06 13:51:421166검색

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] 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).

从以下方法尝试下

  1. 检查目录权限 /opt/mysql/data/,确保读写权限

  2. 删除err文件

  3. 设置 selinux 状态

  4. 检查 mysql 文件夹的用户是否为 mysql

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.