Install MySQL On Mac M1

Ajay Mandal
3 min readFeb 16, 2022

--

Hi folks,I will be installing MySql on ARM64 architecture natively using Homebrew. I will also be installing MySQLWorkbench for GUI Interface. Follow me to end !!

To install these prerequisites, open a Terminal window and run the following commands.

Install Xcode

Install Homebrew

That’s it. Xcode and Homebrew should be installed once those commands have been run.

Install MySQL

Now that Homebrew is installed, let’s go ahead and install MySQL:

Wait patiently while it downloads and installs everything.Once installed, the following message appears:

That message provides useful information for getting started.

Start MySQL

Now that we’ve installed MySQL, let’s start it using the first command listed above

The service after successfully starting display message like

Successfully started `mysql` (label: homebrew.mxcl.mysql)

Once connected, you should see something like this

Install MySQLWorkbench

We can use it manually using command line but lets install MySQL Workbench. Follow this link to download the MySQLWorkbench

Select the macOS in Operating System section and download the dmg file

Double click on the downloaded file and installation begins

Drag the MySQLWorkbench in Application Folder and installation in done. Lets configure it next. Open the application from Launchpad

We have a clean interface with no connection setup. Now click on the ‘+’ near to MYSQL Connections

This window will apper. Since we have started the sql service, name the connection of your choice, I will go with root, leaving all option as default and click on OK

And we got the database connection. click on the root and we get GUI Interface for our database

Lets execute some commands and check whether it responds or not

As we can see, commands execute well and shows the database. We can execute the commands by clicking on flash icon and save the files by clicking on the floppy disk looking icon.

Thanks for reading so far. Hope you make it !!

--

--

Ajay Mandal
Ajay Mandal

Written by Ajay Mandal

Security Researcher | Computer Engineering Spec. IOT | Hack The Box Player

No responses yet