Published on August 8, 2017 by ProgrammingKnowledge

In this post we will learn how to How To Install MySQL on Mac OS X. The same procedure can be used for installing MySQL on Mac OS X.

How to add MySQL to $PATH variable:
cd to your home folder
$ open -t .bash_profile
Try adding the following line to your .bash_profile file.
export PATH=${PATH}:/usr/local/mysql/bin/

Setting the MySQL root user password on OS X
$ mysql -u root -p
mysql$ ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyNewPass’;

————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Leave a Reply

155 Comments on "How To Install MySQL on Mac OS X"

Notify of
avatar

Julia Korchinska
Guest
Julia Korchinska
4 months 18 days ago

thanks a lot! very clear and helpful!

RAVI PAMULAPATI
Guest
RAVI PAMULAPATI
4 months 22 days ago

hai, thanks for the video, Im facing an error when connecting termnal to mysql.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
please help me to resolve it. thanks

Nursultan Saidahmatov
Guest
Nursultan Saidahmatov
4 months 25 days ago

best tutor!, thumbs up!

Camilla B
Guest
Camilla B
4 months 25 days ago

I rarely comment, but this was a great tutorial! THANKS!

Sankalp Sahu
Guest
Sankalp Sahu
4 months 27 days ago

Thanks bro 🙂 Kindly make a video on how to make a webapp using spring java mysql and hibernate and angular 🙂

Ricardo Mendoza Lepe
Guest
Ricardo Mendoza Lepe
5 months 23 hours ago

I did not get a window giving me a temporary password

Dieudonne Nishimwe
Guest
Dieudonne Nishimwe
5 months 5 days ago

what do i do, if there's no password given?

Ruchi Rathore
Guest
Ruchi Rathore
5 months 6 days ago

and people who are getting the access denied error, please try restarting the sever and open window terminal . it worked for me

Ruchi Rathore
Guest
Ruchi Rathore
5 months 6 days ago

can not thank you enough for the help,……. thank you soooo much

Vivian Lim
Guest
Vivian Lim
5 months 6 days ago

Very Helpful. Thank you so much!

1 2 3 11
wpDiscuz