I have a large 5GB table on one of my MySQL databases that I wanted to optimize
.
I went into the console and ran the optimize command and since it's an InnoDB database it cloned the table to a temporary one (is that accurate?).
Anyways, I did not notice that I don't have enough space on my HD to complete this action so it failed in the middle of it:
+------------------+----------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------+----------+----------+-------------------------------------------------------------------+
| support.exported | optimize | note | Table does not support optimize, doing recreate + analyze instead |
| support.exported | optimize | error | The table '#sql-420a_65fb' is full |
| support.exported | optimize | status | Operation failed |
+------------------+----------+----------+-------------------------------------------------------------------+
Now, my HD is 100% full since the temporary table that was created ate up all the storage I had left and I don't have any files I can delete from other locations on the HD to free the space.
I tried to restart the mysql daemon since I thought that might initiate a drop
to the temporary table that was created and that way it will free some space, but what now happens is that I cannot start the server:
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
Is there a way to drop/delete the temporary table that was created during the optimize
process without having the mysql server running?
rm
it, but I wouldn't suggest doing that without being sure that it's not going to cause other problems. – Steven Moseley May 26 at 11:41