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 ?

2

1 Answer 1

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" 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .