Home  >  Article  >  Database  >  How to Stop MySQL on a macOS System?

How to Stop MySQL on a macOS System?

Patricia Arquette
Patricia ArquetteOriginal
2024-11-12 07:16:01359browse

How to Stop MySQL on a macOS System?

Methods to Stop MySQL on a macOS System

This article provides comprehensive guidance on stopping MySQL servers on a Mac OS system, covering various installation methods.

Homebrew Installation

For installations via Homebrew, utilize the following commands:

  • Start: brew services start mysql
  • Stop: brew services stop mysql
  • Restart: brew services restart mysql

MacPorts Installation

When MySQL is installed using MacPorts, employ the following commands:

  • Load: sudo port load mysql57-server
  • Unload (stop): sudo port unload mysql57-server

Binary Installer

If MySQL was installed using the official binary installer, issue the following commands:

  • Stop: sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
  • Start: sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
  • Restart: sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart

The above is the detailed content of How to Stop MySQL on a macOS System?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn