phpmyadmin access denied for user ‘root’@’localhost’ (using password yes/no) – MySQL

Sometimes, you want to connect to mysql database using phpmyadmin in linux. Then you may face errors such as the “Access denied for user ‘root’@’localhost’ (using password yes/no) in PHPMyAdmin mysql linux” error. In this