Quite recently I had to install MySQL on my MAC laptop for a personal project. I was able to easily install the MySQL server. But I ran into several issues while trying to connect to the MySQL server on MAC. Thanks to this post by Akansha Jain on medium, I am able to use MYSQL on my system from command line. Her post describes almost all the errors you encounter while installing and using MySQL server on MAC and how to resolve them.