Error Fixed: ERROR 1698 (28000): Access denied for user ‘root’@’localhost’

If you are trying to log in to your MySQL for the first time or you forgoted to set password, while installing mysql. Then you get this ERROR 1698 (28000): Access denied for user ‘root’@’localhost’. There can be two reasons

MySQL Error: Access Denied for User ‘root’@’localhost’

When you working with MySQL database and you may face access denied for user ‘root’@’localhost’ (using password: YES/NO) in linux ubuntu. In this tutorial, you will see some solutions for Access denied for user ‘root’@’localhost’ (using password: NO/YES). When you