I need your help to resolve the below issue.
I have installed XAMPP server on a virtual machine having Windows 10. I changed the ports from 80 to 8080 and MySQL from 3306 to 3307. Still, I am getting an error when I try to access phpMyAdmin using localhost

Did you also change the phpmyadmin configuration to use the new port?
If not do it with the following steps:
$cfg['Servers'][$i]['host'] = '127.0.0.1';and add$cfg['Servers'][$i]['port'] = 'your new port number';under it