CocoaEngineering
FORMULAv26.10.0.1

mysql for macOS

Open source relational database management system

Installation on macOS (Apple Silicon & Intel)

brew install mysql

Package Metadata

Identifiermysql
Current Version26.10.0.1
Tap Repositoryhomebrew/core
LicenseGPL-2.0-only WITH Universal-FOSS-exception-1.0
Upstream Homepagehttps://github.com/mysql/mysql-server
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (7)

abseil icu4c@79 lz4 openssl@4 protobuf zlib-ng-compat zstd

Build Dependencies (3)

bison cmake pkgconf

Known Conflicts

mariadb, percona-server

Engineering Caveats

A "/etc/my.cnf" or "/etc/mysql/my.cnf" from another install may interfere
with a Homebrew-built server starting up correctly.

Upgrading from MySQL <8.4 to MySQL >9.0 requires running MySQL 8.4 first:
 - brew services stop mysql
 - brew install mysql@8.4
 - brew services start mysql@8.4
 - brew services stop mysql@8.4
 - brew services start mysql

We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -u root
Browse macOS Packages A–Z