Home > Backend Development > PHP Tutorial > Problems encountered when installing LAMP environment on ubuntu system and compiling MySQL

Problems encountered when installing LAMP environment on ubuntu system and compiling MySQL

WBOY
Release: 2016-07-06 13:51:42
Original
1225 people have browsed it

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template