start MySQL server from command line on Mac OS Lion

前端 未结 14 1450
名媛妹妹
名媛妹妹 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:35

    On mac Big Sur and MySQL 5.7, I needed to stop/start with:

    sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

    and

    sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

    This answer came from https://coolestguidesontheplanet.com/start-stop-mysql-from-the-command-line-terminal-osx-linux/

提交回复
热议问题