How do you stop MySQL on a Mac OS install?

前端 未结 20 1451
暗喜
暗喜 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:24

    This worked for me on macOS 10.13.6 with 8.0.12 MySQL

    /usr/local/mysql/support-files/mysql.server start

    /usr/local/mysql/support-files/mysql.server restart

    /usr/local/mysql/support-files/mysql.server stop

提交回复
热议问题