Error in dropping a database in MySQL (can't rmdir '.\oro', errno: 41)

Dan picture Dan · Jul 30, 2013 · Viewed 89.9k times · Source

I can't delete a database from mysql. The error is like

ERROR 1010 (HY000): Error dropping database (can't rmdir '.\oro', errno: 41)

I tried to drop the database 'oro' using phpmyadmin and it also showing the same error message and alerts

"DROP DATABASE" statements are disabled.

Answer

Jamshid Hashimi picture Jamshid Hashimi · Nov 10, 2013

In my case, I solved the problem by navigating to the folder:

C:\wamp\bin\mysql\mysql5.6.12\data

and remove the database folder which I was trying to drop. That's it.