mysql
brew install mysql
v9.6.0_4
GPL-2.0-only WITH Universal-FOSS-exception-1.0
Open-source SQL relational database server with ACID compliance and multi-threaded architecture.
Why you might care
Use MySQL as a persistent data store for applications, development, or testing environments. It's the de-facto standard for LAMP/MEAN stacks and widely supported across frameworks and hosting platforms. Homebrew's formula lets you run a local instance without Docker or a managed cloud service.
19.4k
30-day installs · #239
52.9k
90-day · #268
285.8k
365-day · #223
12.3k
★ GitHub stars · updated 2d ago
Runtime dependencies
Build dependencies
Links
- https://github.com/mysql/mysql-server
- GitHub: mysql/mysql-server
- Brew formula source: Formula/m/mysql.rb
Caveats
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
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [
"mysql@9.6"
],
"alternatives": [
"PostgreSQL",
"MariaDB",
"SQLite",
"MongoDB"
],
"build_dependencies": [
"bison",
"cmake",
"pkgconf"
],
"categories": [
"database",
"server"
],
"caveats": "Upgrading from MySQL \u003c8.4 to MySQL \u003e9.0 requires running MySQL 8.4 first:\n - brew services stop mysql\n - brew install mysql@8.4\n - brew services start mysql@8.4\n - brew services stop mysql@8.4\n - brew services start mysql\n\nWe\u0027ve installed your MySQL database without a root password. To secure it run:\n mysql_secure_installation\n\nMySQL is configured to only allow connections from localhost by default\n\nTo connect run:\n mysql -u root\n",
"conflicts_with": [
"mariadb",
"percona-server"
],
"dependencies": [
"abseil",
"icu4c@78",
"lz4",
"openssl@3",
"protobuf",
"zlib-ng-compat",
"zstd"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Open source relational database management system",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:40:45+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "mysql",
"github_default_branch": "trunk",
"github_last_commit_at": "2026-06-18T12:42:19Z",
"github_readme_excerpt": "Copyright (c) 2000, 2026, Oracle and/or its affiliates.\n\nThis is a release of MySQL, an SQL database server.\n\nLicense information can be found in the LICENSE file.\n\nIn test packages where this file is renamed README-test, the license\nfile is renamed LICENSE-test.\n\nThis distribution may include materials developed by third parties.\nFor license and attribution notices for these materials,\nplease refer to the LICENSE file.\n\nFor further information on MySQL or additional documentation, visit\n http://dev.mysql.com/doc/\n\nFor additional downloads and the source of MySQL, visit\n http://dev.mysql.com/downloads/\n\nMySQL is brought to you by the MySQL team at Oracle.\n",
"github_repo": "mysql/mysql-server",
"github_stars": 12304,
"github_topics": [],
"homepage": "https://github.com/mysql/mysql-server",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 19368,
"installs_365d": 285776,
"installs_90d": 52893,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-2.0-only WITH Universal-FOSS-exception-1.0",
"llm_generated_at": "2026-06-20T23:43:37+00:00",
"llm_model": "claude-haiku-4-5",
"name": "mysql",
"oldnames": [],
"one_liner": "Open-source SQL relational database server with ACID compliance and multi-threaded architecture.",
"optional_dependencies": [],
"rank_30d": 239,
"rank_365d": 223,
"rank_90d": 268,
"raw_hash": "a6b52942f6507305",
"recommended_dependencies": [],
"revision": 4,
"ruby_source_path": "Formula/m/mysql.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"curl",
"cyrus-sasl",
"libedit"
],
"version_head": null,
"version_stable": "9.6.0",
"versioned_formulae": [
"mysql@8.4",
"mysql@8.0"
],
"why_use_this": "Use MySQL as a persistent data store for applications, development, or testing environments. It\u0027s the de-facto standard for LAMP/MEAN stacks and widely supported across frameworks and hosting platforms. Homebrew\u0027s formula lets you run a local instance without Docker or a managed cloud service."
}