How can I make mysql recognize root user after install?

view story

http://serverfault.com – I just installed MySQL 5.5 and right after install I was asked to set root password by executing those two commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h linux-opxd password 'new-password' or /usr/bin/mysql_secure_installation I executed first command -- OK. I executed second command this time with error: error: 'Access denied for user 'root'@'localhost' (using password: NO)' I re-executed the first one (for checking) -- error as above. So, I executed mysql_secure_installation. Everything went fine and my password was recognized. So (HowTos)