How to Reset the ROOT Password for MySQL on Mac OS 10.10

This post explains how to reset the MySQL root user on a Mac running OS 10.10. This procedure is for the case that you are unable to log in as the root user and need to reset the root user’s password.

Note that there are 2 colored sets of examples. One is for MySQL installed by Brew.

1) Stop the MySQL server

2) Start the server in safe mode and bypass privilege tables.

3) In a seperate terminal window start MySQL.

4) Perform the MySQL root user password reset query and flush the the privileges.

NOTE: For versions of prior to MySQL 5.7, replace the ‘authentication_string’ portion of the above query with ‘password’.

Leave a Reply

Your email address will not be published. Required fields are marked *