Okay, I'm aware that the MySQL Error 1050 is a common one. I've spent the past hour and a half reading other questions and answers and trying lots of things, but for some reason I can't get mysql back working again.
- MySQL does not show the table.
- SELECT * FROM `table` yields
Error 1146: Table doesn't exist
. - DROP TABLE `table` yields
Error 1051: Unknown table
. - DESCRIBE TABLE yields
Error 1146
. CREATE `table` yields
Error 1051: Table already exists
.SELECT * FROM information_schema.TABLES WHERE TABLE_NAME = 'table' yields an empty result set.
- Ran the FLUSH TABLES command, which executed successfully, but with the result of
0 row(s) affected
. - REPAIR TABLE yields an
Operation failed
message statingTable doesn't exist
What the...?
So, frustrated, I try deleting the whole database schema and I get 'Lost connection to MySQL server during query', 2013
.
I feel like something got corrupted, so I tried going to /usr/local/mysql/data/
and deleted the folder. The schema disappeared from MySQL Workbench. Recreated the schema and tried syncing my database model and it says the table already exists.
I don't understand what is going on here and I don't understand what I can do to fix it. I just want to get back to work!