mysqladmin -u root password sqlpass
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I had this same problem before. Here's what I think I did try:
mysqladmin -u root -p sqlpass
-u = user and -p should = password iirc. This may require you to enter your password after you press enter (not sure if sqlpass actually is read or not) but either way you should be able to login with this. let me know if it doesn't work and I'll see what else I can find.