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. ./mysql - logs in with no username and no password but
show databases doesnt show a mysql database.
2. Couldn't login as root either.
Code:
$ ./mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO
3. Neither did mysqladmin work
Code:
./mysqladmin -u root password "password"
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Is there any other way ?