Purge mysql and it's configuration completely from MAC.
You do not need to purge anything, you just need to follow these instructions to reset the administrator password. If you happened to delete the admin user, just create a new one on the init file:

create user root@localhost;
grant all privileges on *.* to root@localhost;