I followed two solutions to your problem, try choosing the one that works.
Solution: 1
You set the password for MySQL as pass, but you set the TRUE flag in this parameter. $cfg['Servers'][$i]['AllowNoPassword'] = true;
Try setting the flag to false , like this
$cfg['Servers'][$i]['AllowNoPassword'] = false;
Solution: 2
Since you are logging in as the root user for MySQL, you need to change the above configuration parameter to
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = false;
source share