Home > Database > Mysql Tutorial > 修改mysql安装目录权限导致mysql无法启动_MySQL

修改mysql安装目录权限导致mysql无法启动_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:43:49
Original
1409 people have browsed it

bitsCN.com

现象

昨天安装完brew,将/usr/local下的所有文件的权限都给当前用户了。没有注意。

今天早上起来,准备启动mysql,无法启动,打开系统设置中的系统。

屏幕快照 2012 03 01 下午1 08 58

 修改用户权限

输入如下命令OK,

1 sudo chown -RL root:mysql /usr/local/mysql 2 sudo chown -RL mysql:mysql /usr/local/mysql/data 3 sudo /usr/local/mysql/support-files/mysql.server start

    一切OK,

    屏幕快照 2012 03 01 下午1 10 10

    作者 杨友峰

    bitsCN.com
    Related labels:
    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
    Latest Issues
    MySQL stops process
    From 1970-01-01 08:00:00
    0
    0
    0
    Error when installing mysql on linux
    From 1970-01-01 08:00:00
    0
    0
    0
    phpstudy cannot start mysql?
    From 1970-01-01 08:00:00
    0
    0
    0
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template