i used the following sytanx
drop database filmo;
and got the following error:
ERROR 1010 (HY000): Error dropping database
drop database <database_name>;
sudo rm -rf /var/lib/mysql/db_production
where db_production is the name of the database
Remember to use "sudo".
It means there are files in that directory not relating to MySQL. Another issue, although I doubt it, is insufficient permissions. You may delete that directory from the filesystem.
Got same error. This fixed it for me in Ubuntu 10.04:
stop mysql
rm -rf /var/lib/mysql/XXXXX
start mysql
Where XXXXX is the offending database name.
I've changed the permissions on mysql folder ( windows server c:\xampp\mysql
) and is working now, I've created and dropped databases without any error.
This is what I do on Mac OS X Mavericks:
/usr/local/mysql/data