Home > Database > Mysql Tutorial > body text

How to Stop MySQL on a macOS System?

Patricia Arquette
Release: 2024-11-12 07:16:01
Original
357 people have browsed it

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template