【问题标题】:error when starting mysql with brew用brew启动mysql时出错
【发布时间】:2017-07-09 12:57:10
【问题描述】:

我开始学习PHP Laravel,我已经到了代客安装,到了需要用这个命令用brew安装mysql的地步

brew install mysql

mysql安装成功,但是当我运行命令时

brew services start mysql

我收到这个错误,我找不到解决方案

 sh: 1: list: not found
 Error: Failure while executing:  load -w 
 /home/chemseddinez/Library/LaunchAgents/homebrew.mxcl.mysql.plist

PS:我使用的是 ubuntu 16.04 LTS

【问题讨论】:

    标签: php mysql laravel-5 homebrew


    【解决方案1】:

    brew services 仅适用于 macOS 的 launchctl 管理器。您可以使用$(brew --prefix)/bin/mysql.server 手动启动mysql。

    或者您可以安装apt-get install mysql-server 并通过systemctl start mysql 将其作为守护程序启动。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-11
      • 1970-01-01
      • 2018-09-18
      • 1970-01-01
      • 2016-02-16
      • 2014-10-29
      • 2016-02-22
      • 1970-01-01
      相关资源
      最近更新 更多