CocoaEngineering
FORMULAv9.7.4.1

mysql@9.7 for macOS

Open source relational database management system

Installation on macOS (Apple Silicon & Intel)

brew install mysql-9.7

Package Metadata

Identifiermysql-9.7
Current Version9.7.4.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 (8)

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

Build Dependencies (3)

bison cmake pkgconf

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