If you don't remember or need to reset mysql password on your mac , follow these steps:
1.Stop mysql server.
2. Open terminal and paste code below. It will run the server in safe mode with privilege bypass.
3. Open new terminal. Paste code below.
4. For MySQL older than MySQL 5.7 use:
For MySQL 5.7+ use:
5. Now flush the permissions & quit.
Hope it helps. Share if you like.