omatic
1-14-09, 01:29 AM
I had some trouble with a database recently, and it was necessary to create a new database and restore my database to it, then point my apps at the new database.
Creating the new database and plopping my data into it was fairly trouble free, and it's working fine so far. So, thankfully, my site is operating again. The problem is, in trying to clean up the wreckage of my old database (about 10MB worth of data), it refuses to be dropped. The problem seems to be two toxic tables... read on.
The database originally had ten tables in it. Eight of them were no problem to eliminate using DROP TABLE tablename command. However the two remaining tables are apparently so corrupt, that I can neither drop them, query them, repair them, check them, or view the table's structure*. Nor can I drop the database entirely. Any of these actions will cause whatever tool I'm using, to hang. I then have to use a secondary tool and kill the hung process, before I can try anything else.
To eliminate the tables and/or drop the database, I've tried phpMyAdmin to deliver a DROP TABLE tablename, and also tried the "drop database" button on the Services|MySQL tab in Ops. I've also tried the excellent (and extremely lightweight --only about 10K!!) phpMiniAdmin interface (http://phpminiadmin.sourceforge.net/)... but no joy.
Unfortunately, the same thing happens regardless of tool; the problem is apparently the DB and/or its remaining two corrupt tables, not how one delivers the commands.:confused:
Anybody have any ideas about what I could try next?
Thanks,
Mike AKA omatic
* = Strangely, while I can't browse the table or view its structure with any STRUCTURE links in phpMyAdmin, the DESCRIBE tablename command works without any problem. It's about the only thing I CAN do with it! Even a count(*) query freezes things up.
Creating the new database and plopping my data into it was fairly trouble free, and it's working fine so far. So, thankfully, my site is operating again. The problem is, in trying to clean up the wreckage of my old database (about 10MB worth of data), it refuses to be dropped. The problem seems to be two toxic tables... read on.
The database originally had ten tables in it. Eight of them were no problem to eliminate using DROP TABLE tablename command. However the two remaining tables are apparently so corrupt, that I can neither drop them, query them, repair them, check them, or view the table's structure*. Nor can I drop the database entirely. Any of these actions will cause whatever tool I'm using, to hang. I then have to use a secondary tool and kill the hung process, before I can try anything else.
To eliminate the tables and/or drop the database, I've tried phpMyAdmin to deliver a DROP TABLE tablename, and also tried the "drop database" button on the Services|MySQL tab in Ops. I've also tried the excellent (and extremely lightweight --only about 10K!!) phpMiniAdmin interface (http://phpminiadmin.sourceforge.net/)... but no joy.
Unfortunately, the same thing happens regardless of tool; the problem is apparently the DB and/or its remaining two corrupt tables, not how one delivers the commands.:confused:
Anybody have any ideas about what I could try next?
Thanks,
Mike AKA omatic
* = Strangely, while I can't browse the table or view its structure with any STRUCTURE links in phpMyAdmin, the DESCRIBE tablename command works without any problem. It's about the only thing I CAN do with it! Even a count(*) query freezes things up.