Just a very quick post today! If you encounter this error when attempting to drop a MySQL database;

Error dropping database (can't rmdir './database', errno: 39)

Then you probably have some rogue files in the folder where the database files are located. If you cd into this directory you will be able to view these files. In my case I had a tar archive containing the files the database was restored from. Just delete any files in this directory and you’ll be able to complete the drop.