How do you stop MySQL on a Mac OS install?

前端 未结 20 1463
暗喜
暗喜 2020-11-30 16:08

I installed MySQL via MacPorts. What is the command I need to stop the server (I need to test how my application behave when MySQL is dead)?

20条回答
  •  日久生厌
    2020-11-30 16:48

    If you are using homebrew you can use

    brew services restart mysql
    brew services start mysql
    brew services stop mysql
    

    for a list of available services

    brew services list
    

提交回复
热议问题