Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Cupertino desk2 min

How to Install MySQL on Apple Silicon Macs with Homebrew

Use Homebrew to install and start a local MySQL server on an Apple Silicon Mac, then secure the initial setup and resolve common installation conflicts.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install the Homebrew MySQL server on an Apple Silicon Mac with brew install mysql, then run brew services start mysql to start it and have it launch at login. Homebrew supports Apple Silicon for the formula. Its initial database has no root password, so secure the setup with mysql_secure_installation.

Install and start MySQL

  1. Make sure Homebrew is installed and available in your shell. Apple Silicon installations commonly use /opt/homebrew, but use the prefix reported by your own Homebrew installation rather than assuming a path.

    As an Amazon Associate I earn from qualifying purchases.

  2. Install the default MySQL server formula:

    brew install mysql
  3. Start MySQL as a user service. This starts the server now and configures it to start at login:

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    brew services start mysql
  4. Connect to the local server:

    mysql -u root
  5. Secure the initial setup by following the prompts:

    mysql_secure_installation

Homebrew documents running the server directly with mysqld_safe and the Homebrew prefix’s var/mysql data directory, but its service command is the straightforward choice for a workstation. The formula says the database is installed without a root password and that connections are configured for localhost by default. See the Homebrew MySQL formula.

#1 Best Overall
Apple Magic Keyboard with Touch ID and Numeric Keypad for Mac Models with Apple Silicon - US English - White Keys, Bluetooth, Bluetooth
  • Magic Keyboard is available with Touch ID, providing fast, easy and secure authentication for logins and to unlock your Mac.
  • Magic Keyboard with Touch ID and Numeric Keypad delivers a remarkably comfortable and precise typing experience.
  • It features an extended layout, with document navigation controls for quick scrolling and full-size arrow keys, which are great for gaming.
  • The numeric keypad is also ideal for spreadsheets and finance applications.
  • It’s wireless and features a rechargeable battery that will power your keyboard for about a month or more between charges.

Choose a formula that matches your project

The unversioned mysql formula is the direct Homebrew installation route. If an application, course, or existing project specifically requires MySQL 8.4, Homebrew also provides [email protected] for Apple Silicon; install and start that formula instead:

brew install [email protected]
brew services start [email protected]

Check the server version your project supports before choosing. The Homebrew pages list both formulas as supporting Apple Silicon: mysql and [email protected].

Take extra care when upgrading existing databases: Homebrew warns that upgrades from MySQL versions below 8.4 to versions above 9.0 require an intermediate upgrade through 8.4. Preserve your data and follow the formula’s current migration guidance rather than jumping directly across that boundary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Apple Magic Keyboard with Touch ID for Mac Models with Apple Silicon [Lightning Port] (QWERTY English) Silver (Renewed)
  • WIRELESS, RECHARGEABLE CONVENIENCE - Magic Keyboard with Touch ID connects wirelessly to your Mac via Bluetooth. And the rechargeable internal battery means no loose batteries to replace.
  • WORKS WITH ANY MAC WITH APPLE SILICON - It pairs automatically with your Mac with Apple silicon so you can get to work right away. See the list of compatible devices above. Requires a Mac with Apple silicon using macOS 11.4 or later.
  • ENHANCED TYPING EXPERIENCE - Magic Keyboard delivers a remarkably comfortable and precise typing experience.
  • QUICK UNLOCK WITH TOUCH ID - Touch ID gives you a fast, easy, secure way to unlock your Mac and sign in to apps and sites.
  • GO WEEKS WITHOUT CHARGING - The incredibly long-lasting internal battery will power your keyboard for about a month or more between charges. (Battery life varies by use.) Comes with a woven USB-C to Lightning Cable that lets you pair and charge by connecting to a USB-C port on your Mac.

Server formula versus client-only package

For a local database server, use mysql or the versioned server formula that meets your project’s needs. Homebrew’s separate mysql-client package provides client tools, not the server, and is marked keg-only because it conflicts with client libraries included in the full formula. See the Homebrew mysql-client formula.

Troubleshoot startup and installation conflicts

MySQL will not start

Check whether /etc/my.cnf or /etc/mysql/my.cnf exists. The Homebrew formula warns that either configuration file can interfere with its server. Review the file’s settings before changing or removing it.

The port is already in use

Another MySQL server may already be running, including one installed through Oracle’s native macOS package. Identify and stop the other instance before starting a second server, so the two installations do not compete for a port. Oracle’s macOS installation notes distinguish native installations from Homebrew installations.

Rank #3
Sale
Apple 2026 Mac mini Desktop Computer M6 chip | 12‑core CPU and 12‑core GPU, 16GB Unified Memory, 256GB SSD Storage
  • LITTLE DO-IT-ALL — Mac mini packs pure power into a small, five-by-five-inch desktop as the M6 chip delivers next-level AI capabilities. Mac mini features 2.5Gb Ethernet with support for Wi-Fi 7* and Bluetooth 6, with ports on the front and back.
  • M6 CHIP — Everything you do on Mac mini feels more responsive with the M6 chip and its next-generation CPU. Fly through AI workflows with up to 4.8x faster AI performance,* thanks to a Neural Accelerator in each GPU core, faster unified memory, and a Dual 16-core Neural Engine.
  • CONNECT IT ALL — Features three Thunderbolt 4 ports, an HDMI port, and a 2.5Gb Ethernet port in the back, and two USB-C ports and a headphone jack in front. Supports up to three external displays. With the Apple-designed N1 wireless chip for Wi-Fi 7* and Bluetooth 6.
  • A POWERFUL PLATFORM FOR AI — Apple silicon is designed to run demanding AI workflows like using huge LLMs, directly on device. And Apple Intelligence* helps you write, express yourself, and get things done effortlessly, while Siri AI* is your profoundly capable assistant — all with groundbreaking privacy protections.
  • A POWERFUL PLATFORM FOR AI — Apple silicon is designed to run demanding AI workflows like using huge LLMs, directly on device.

The shell finds an unexpected MySQL command

Check which executables your shell resolves:

which mysql
which mysqld

If the paths point to an unexpected installation, check your shell’s PATH and whether another package or native installer is present. Oracle’s native installation process does not manage Homebrew installations.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep a local installation local

The Homebrew formula’s documented default allows connections from localhost only. Do not change bind-address settings or firewall rules simply to complete a local installation; allowing remote connections is a separate configuration decision with security implications.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.