start MySQL server from command line on Mac OS Lion

前端 未结 14 1471
名媛妹妹
名媛妹妹 2020-11-30 16:22

I installed mySQL for my Mac. Beside starting the SQL server with mySQL.prefPane tool installed in System Preference, I want to know the instruction to start from command-li

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 16:38

    My MySQL is installed via homebrew on OS X ElCaptain. What fixed it was running

    brew doctor

    • which suggested that I run

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

    Then:

    brew update
    mysql.server start
    

    mysql is now running

提交回复
热议问题