I had a corrupted database on my development environment that I could not access any more - probably due to a system crash. As I could not DROP the database (I can't remember why - doesnt matter any more now) I just deleted the databases folder in mysql/data.
This obviously was not a very good idea. After creating a new database with the same name, there are still some tablespace definitions somewhere in the database. When I try create new tables I get following error:
Tablespace for table 'database_name
.table_name
' exists. Please DISCARD the tablespace before IMPORT.
Is there a decent way to get rid of all references/indexes/tablespace information for the given database? When I try to DROP the newly created Database with the same name, I get: "ERROR 2013 (HY000): Lost connection to MySQL server during query".