Jump to content

Update Modules results in caches is marked as crashed and last automatic repair failed


alan
 Share

Recommended Posts

Sorry to bother you clever people...

TL;DR

I need to re-create or fix somehow the caches table in PW

Detail

I have a site [PW v 2.5.3] with a database table that is clearly unwell.

If I go to

Admin > Modules

and click 'Refresh' then this error is reported:

SQLSTATE[HY000]: General error: 144 Table './tsspw/caches' is marked as crashed and last (automatic?) repair failed

I have tried using phpmyadmin, selecting the table and using 'Repair' but it fails.

Also, if I try to backup the database over SSH with Navicat.app (a very good MySQL app for Mac) then it reports:

[Msg] [Bak] Starting backup...
[Msg] [Bak] Gather Information
[Err] [Bak] Get Table `caches` Row Count:
Table './tsspw/caches' is marked as crashed and last (automatic?) repair failed
[Msg] [Bak] Finished unsuccessfully

Thanks for any pointers as to how I can solve this, cheers, -Alan

Link to comment
Share on other sites

can you delete all rows from the table caches via phpmyadmin?

or, if not, can you delete the table caches and create a new one:

CREATE TABLE `caches` (
	`name` VARCHAR(255) NOT NULL,
	`data` MEDIUMTEXT NOT NULL,
	`expires` DATETIME NOT NULL,
	PRIMARY KEY (`name`),
	INDEX `expires` (`expires`)
)
COLLATE='utf8_general_ci'
ENGINE=MyISAM;

This should solve it. After hitting refresh, it rows should be populated again.

  • Like 4
Link to comment
Share on other sites

horst, you're a star :D Thank you. I was tempted to drop the table but being unfamiliar I was reticent.

I found I could not delete it's rows as phpmyadmin came back with an error. However I selected the table and deleted it via phpmyadmin and then used the SQL you provided. The table was re-created and after logging in and doing a check for new modules the table now has some healthy looking rows and data. Also now the remote backup via Navicat works.

Thank you!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...