Posted on

How to reset MySQL Password in Mac OS


1.  Stop the mysqld server.  Typically this can be done by from ‘System Preferences’ > MySQL > ‘Stop MySQL Server’

2.  Start the server in safe mode with privilege bypass

From a terminal:

Type the following:
https://gist.github.com/michelve/9cab183f822434707b87c43c5bc6a972

3.  In a new terminal window:

Type the following, line by line:

https://gist.github.com/michelve/137340ae4fb7dabd37f948181d8f2e09

4.  Close Terminal, and stop the mysql server again and restart it.