root@[.....]:~# mysqladmin password -u root -p
Enter password:
New password:
Confirm new password:
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
root@[.....]:~# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)