【问题标题】:OSX 10.9.5 brew install mysql - "The post-install step did not complete successfully"OSX 10.9.5 brew install mysql - “安装后步骤未成功完成”
【发布时间】:2014-11-27 03:09:39
【问题描述】:

如问题标题中所述,我无法使用 Homebrew 安装 mysql。

shubhamgoyal$ brew install mysql

`==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.21.mavericks.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/mysql-5.6.21.mavericks.bottle.tar.gz
==> Pouring mysql-5.6.21.mavericks.bottle.tar.gz
==> Caveats
A "/etc/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly.

To connect:
    mysql -uroot

To have launchd start mysql at login:
    ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Then to load mysql now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Or, if you don't want/need launchctl, you can just run:
    mysql.server start
==> /usr/local/Cellar/mysql/5.6.21/bin/mysql_install_db --verbose --user=shubhamgoyal --basedir=/usr/local/Cellar/mysql/5.6.21 --datadir=/usr/local/var/mysql --tmpdir=/tmp
2014-10-02 14:29:01 18521 [Note] InnoDB: FTS optimize thread exiting.
2014-10-02 14:29:01 18521 [Note] InnoDB: Starting shutdown...
2014-10-02 14:29:03 18521 [Note] InnoDB: Shutdown completed; log sequence number 123515594
2014-10-02 14:29:03 18521 [Note] /usr/local/Cellar/mysql/5.6.21/bin/mysqld: Shutdown complete

Warning: The post-install step did not complete successfully
You can try again using `brew postinstall mysql`
==> Summary
????  /usr/local/Cellar/mysql/5.6.21: 9621 files, 339M

shubhamgoyal$ mysql.server 启动

Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/27-43.priv23.nus.edu.sg.pid).`

我找不到任何 /etc/my.cnf 文件,所以我不知道为什么会出现这个问题。

【问题讨论】:

    标签: mysql macos installation osx-mavericks homebrew


    【解决方案1】:

    sudo chown -R $(whoami) /usr/local

    【讨论】:

      【解决方案2】:

      如果您使用的是 High Sierra 或更高版本,则无法再对 /usr/local 进行 chown'd。假设您已经使用 Homebrew 安装了 mysql,请尝试:

      sudo chown -R $(whoami) $(brew --prefix)/*
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-02-03
        • 1970-01-01
        • 1970-01-01
        • 2016-02-16
        • 2012-09-18
        • 1970-01-01
        • 2016-09-04
        • 2012-09-03
        相关资源
        最近更新 更多