How to Install Mysql on Mac Using Homebrew

김영석
2 min readAug 4, 2018

The first thing you have got to do is

check the latest stable version that Homebrew(Software Package Manager on Mac OS) provides for installation.

Run the command line $brew info mysql

then you can see some response as below.

The response is saying that the package manger provides stable version 8.0.12 of mysql.

If you don’ t have any specific requirement to the version of mysql, just go on with the installation with the command line $brew install mysql.

Once the brew manager installed the mysql, the message comes out as in the picture above. Then, run the command $mysql_secure_installation to configure the root password because the installation got executed without setting the password for the root user.

and then start the mysql server and get logged in for simple connection test.

Run the command

$mysql.server start

then you can see the server has been started successfully.

Now, you are able to log-in the mysql server and check by running simple mysql query statement.

Simple as that.

Thanks!

Now we are ready to get down to SQL Practice.

Please check out the next story — SQL Practice on Mac with Mysql

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

김영석
김영석

Written by 김영석

I love problem solving and hate repetition of tedious tasks. I like automating, streamlining, optimizing, things.

Responses (1)

Write a response

Its asking for root password,What is default password??

--