The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →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
-
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.
-
Install the default MySQL server formula:
brew install mysql -
Start MySQL as a user service. This starts the server now and configures it to start at login:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsSpecial offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.brew services start mysql -
Connect to the local server:
mysql -u root -
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
- 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.
Recommended Free Tools
Rank #2
- 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
- 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.
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.
Quick Recap
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.




