How to Install MySQL on macOS (using a DMG File)



How to Install MySQL on macOS (using a DMG File)

How to Install MySQL on macOS (using a DMG File)

Installing MySQL on a Mac is pretty straightforward, but there are a couple of things to be aware of. There are two ways to do it: the DMG method and the Homebrew method. This video uses the DMG method.

You may also get a “mysql command not found” when you try to connect to the database.

In this video, you’ll see how to download MySQL, install it, resolve that “mysql command not found” error, connect to the database, and run some simple SQL.

If you want to go further, you can install MySQL Workbench as well. I’ll have a separate video for that.

Timestamps:
00:00 What’s in this video
00:39 Download MySQL
02:43 Install MySQL
04:13 Check MySQL is running
04:45 Connect to the database using terminal
05:17 Resolve “bash MySQL command not found” error
06:53 Connect and test

/// RESOURCES
Get my free SQL Cheat Sheets for Oracle, SQL Server, MySQL, and Postgres here: https://www.databasestar.com/get-sql-cheat-sheets/
SQL Roadmap: an overview of SQL topics, which is a great place to start: https://www.databasestar.com/sql-roadmap/
Contact me here for questions, sponsorship requests, and more: https://www.databasestar.com/contact/
Want to take your database and SQL skills to the next level? Sign up for Database Star Academy, the online platform for database development and SQL. Check it out here: https://www.databasestar.com/dsa/

Comments are closed.