This error is caught up when dropping database permission is disabled (false). It may be by default when you install any localhost server.
There are a few simple steps to get through this alert which are as following:
- At first, open C drive.
- Open your localhost (ex.-WAMP64) folder.
- Then apps
- Find config.default.php file and open it in the text editor that has administrator permissions. you can also use notepad to edit this by running as administrator.
- You will see AllowUserDropDatabase is false, replace it with true.
- Finally, you need to restart your computer to appear the changes.
config.default.php may be hidden by default, So make sure, you have selected ‘All files’.