Start using MySQL

Install MySQL 8.4 on macOS

Install the MySQL 8.4 LTS server and client with Homebrew, then verify the version before creating any data.

8 minute lesson

~~~

This course uses the versioned MySQL 8.4 LTS Homebrew formula:

brew install [email protected]
brew services start [email protected]

The formula is keg-only. You can run its client with the full Homebrew path:

$(brew --prefix [email protected])/bin/mysql --version

The output should start with mysql Ver 8.4. If you installed MySQL another way, use that installation’s service and client instructions.

Authentication defaults depend on the package and platform. A fresh Homebrew installation may allow a local administrative connection without a password until you run mysql_secure_installation. Do not assume another installation behaves the same way.

Lesson completed

Take this course offline

Get every free book and course as PDF and EPUB files.

Get the download library →