I see two ways people fix this on help sites

(1) Go to xampp/phpmyadmin/libraries and open config.default.php . And find the link

$cfg[‘AllowUserDropDatabase’] = false;

Change it to true like this

$cfg[‘AllowUserDropDatabase’] = true;

(2) Go to xampp/phpmyadmin and open config.inc.php. Add this this line

$cfg[‘AllowUserDropDatabase’] = true;

I have experienced this error before. The first one did not but the second one did. So instead of changing config.default.php, add the line to the file config.inc.php instead