nicolashery/mac-dev-setup

"mysql.server start" is "mysql.server: command not found"

Closed this issue · 2 comments

I followed the instructions to install MySQL:
brew install mysql

... it went through a lot of status reporting on the install...

Then it paused for a while on ...

==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.11.3 --no-system-libs --parallel=4 --datadir=/share/cmake --docdir=/share/
mysql.server start

Then it gave me back my command line.

But, when I test out with mysql.server start, it reports mysql.server: command not found

Try :
brew services start mysql

mysql.server start also works.
In case neither of them work, try reinstalling mysql using homebrew

Indeed, in a new version of the guide (bffbe4b), I now suggest using brew services start <service> to start/stop databases such as MySQL.