briand74 Posted September 8, 2009 Share Posted September 8, 2009 I have a website running Drupal on a shared web hosting service. A table has crashed and I haven't been able to figure out how to fix it yet. Drupal gives errors when a page that uses that table is displayed. MySQL version: 5.0.81 Here is what I get when running CHECK TABLE in either phpMyAdmin or via command line: Table Op Msg_type Msg_text xxx_drpl1.image check error Table upgrade required. Please do "REPAIR TABLE `image`" to fix it! This what happens when I do REPAIR TABLE: Table Op Msg_type Msg_text xxx_drpl1.image repair Error Table './k2as_drpl1/image' is marked as crashed and should be repaired xxx_drpl1.image repair Error Table 'image' is marked as crashed and should be repaired xxx_drpl1.image repair status Table is already up to date So I kept searching and tried to use myisamchk. I can connect to the database, but always get ERROR 1064 Syntax Error when trying various myisamchk commands. Any help would be appreciated. Brian Quote Link to comment https://forums.phpfreaks.com/topic/173491-mysql-table-crashed/ Share on other sites More sharing options...
fenway Posted September 8, 2009 Share Posted September 8, 2009 Upgrade???? What changed? Quote Link to comment https://forums.phpfreaks.com/topic/173491-mysql-table-crashed/#findComment-915030 Share on other sites More sharing options...
briand74 Posted September 8, 2009 Author Share Posted September 8, 2009 There were no upgrades. It apparently crashed while a user was uploading. It is part of a Drupal Image Module. I've been trying to repair it, finally got SSH working yesterday after trying various phpMyAdmin checks/repairs. Been trying myisamchk since various sites have mentioned it is what should be tried if REPAIR TABLE doesn't work. I got in via command line and can select the DB, but get syntax errors when trying things like: myisamchk tablename; Was trying to follow MySQL documentation. Quote Link to comment https://forums.phpfreaks.com/topic/173491-mysql-table-crashed/#findComment-915120 Share on other sites More sharing options...
fenway Posted September 10, 2009 Share Posted September 10, 2009 "table upgrade required" is rarely from corruption. Quote Link to comment https://forums.phpfreaks.com/topic/173491-mysql-table-crashed/#findComment-916297 Share on other sites More sharing options...
briand74 Posted September 10, 2009 Author Share Posted September 10, 2009 Thanks Fenway. Yes, the Check command and Repair command give slightly different stories. My research led me to think myisamchk might be an avenue to take, but I'll look and see if Drupal offers a way to "upgrade" a table. Though this table is part of a DB that includes about 50 tables and this is the only one that is complaining, but it is a separate module and maybe just doing an upgrade, even if my version is already the latest might fix it. Thanks for taking the time to answer this post. Brian Quote Link to comment https://forums.phpfreaks.com/topic/173491-mysql-table-crashed/#findComment-916387 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.