Phpmyadmin not working without Password

How to login without password in phpMyAdmin
Step to add password in root Login
  1. Login with root credentials in Ubuntu
  2. Open Command Prompt (Ctrl+Alt+t ) in ubuntu
  3. Give following command to open mysql
  4. sudo musql -u root
  5. This will open mysql prompt without password
  6. Give following command in mysql
  7. ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password by ‘admin’;
  8. This command will update password as admin
  9. Come out of mysql (Ctrl+z)
  10. Type following command to restart mysql service
  11. sudo service mysql restart
  12. Now open phpmyadmin in browser with credential root as username and password as ‘admin’
  13. Hurre!!!
  14. Login is sucessfully done