Install mysql in 5 minutes

Diko_Mahendra
2 min readSep 22, 2022

--

Hi I will give you summary for simple mysql installation on mac

the first is download

here: https://dev.mysql.com/downloads/mysql/8.0.html download extension dmg for mac

after finished, go to file downloader or place do you download folder, and install them, I think for the installation is so simple you can continue and continue,

after that, go to install mysql workbench for getting UI for easier to use or manage your database.

here: https://www.mysql.com/products/workbench/

next, go to terminal and put this line code

copy this code “export PATH=${PATH}:/usr/local/mysql/bin/”

to file .bash_profile,

.bash_profile file

if you don’t have it, you can create first with this command

# touch .bash_profile

and don’t forget to make sure your terminal position on the root directory, (I mean doesn’t in another directory).

/usr/local/mysql/bin/ this file is a location where you mysql default installed.

allright almost completed, check your mysql is ready to use or not

open the terminal and follow the command below

# mysql -u root -p

if you have asked to password u can ignored and just click enter;

this is a last step if u want to set password for login on your mysql

follow this command below

mysql > ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘put your password here

check if this work, close your terminal and go back login to your mysql with this command # mysql -u root -p , and put the password what u create before.

hope this help thank you

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

--

--

Diko_Mahendra
Diko_Mahendra

Written by Diko_Mahendra

Frontend Engineer at Telkom Indonesia

No responses yet

Write a response