0

I installed MySQL on a Mac OSX Snow Leopard and got the mysql service started but I couldn't login as root to reset the password.

  1. Couldn't login as root either.

    $ ./mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

  2. Neither did mysqladmin work

    ./mysqladmin -u root password "password" ./mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'

How do set/reset my MySQL password ?

0

Make sure you are first logged into your local system as root, and then reset the password with mysqladmin like:

./mysqladmin -u root password "password" 
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.