Search code examples
mysqlosx-mavericks

Mysql cannot be started after updating os x mavericks


My mysql was running good when my os x is 10.8.5, and I update os x mavericks today, after finishing updating, I run the command "mysql -uroot -pmypwd mydatabase" and I cannot enter mysql anymore.

zsh: command not found: mysql

How could I fix this problem?


Solution

  • The problem is that the mysql binary no longer is on your PATH.

    If you use brew you should repair the brew installation using brew update and if it still do not work use brew doctor to find the problem.

    If you installed it in some other way you need to add mysql to the PATH environment variable again.