mysql

Install command:
brew install mysql

Also known as: mysql@9.7

Open source relational database management system

https://github.com/mysql/mysql-server

License: GPL-2.0-only WITH Universal-FOSS-exception-1.0

Development: Pull requests

Formula JSON API: /api/formula/mysql.json

Formula code: mysql.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 9.7.1

Other versions:

mysql@8.4 8.4.10 Open source relational database management system
mysql@8.0 8.0.46 Open source relational database management system

Depends on:

abseil 20260107.1 C++ Common Libraries
icu4c@78 78.3 C/C++ and Java libraries for Unicode and globalization
lz4 1.10.0 Extremely Fast Compression algorithm
openssl@3 3.6.3 Cryptography and SSL/TLS Toolkit
protobuf 35.1 Protocol buffers (Google's data interchange format)
zlib-ng-compat 2.3.3 Zlib replacement with optimizations for next generation systems
zstd 1.5.7 Zstandard is a real-time compression algorithm

Depends on when building from source:

bison 3.8.2 Parser generator
cmake 4.4.0 Cross-platform make
pkgconf 3.0.3 Package compiler and linker metadata toolkit

Conflicts with: mariadb, percona-server

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

Analytics:

Installs (30 days)
mysql 20,568
mysql --HEAD 28
Installs on Request (30 days)
mysql 20,563
mysql --HEAD 28
Build Errors (30 days)
mysql 566
Installs (90 days)
mysql 53,273
mysql --HEAD 86
Installs on Request (90 days)
mysql 53,253
mysql --HEAD 86
Installs (365 days)
mysql 279,777
mysql --HEAD 562
Installs on Request (365 days)
mysql 279,504
mysql --HEAD 562