使用brew启动mysql时出错

时间:2017-07-09 12:57:11

标签: php mysql laravel-5 homebrew

我开始学习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

1 个答案:

答案 0 :(得分:0)

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

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

相关问题