getting error for access to mysql
1. [cloudera@quickstart ~]$ mysql -uroot -pcloudera
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
2. [cloudera@quickstart ~]$ mysql -uroot
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
3. [cloudera@quickstart ~]$ mysql -u root -p cloudera
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
in 3 step putting password as cloudera but it not works