Spikolynn
Spikolynn

Reputation: 4173

How to stop google cloud sql from corrupting database tables

Today I noticed my wordpress website one GAE-php has no more posts and the logs claim

WordPress database error Table './dbname/wp_posts' is marked as crashed and should be repaired

Some time before that I saw errors in log relating to "duplicate keys", but I can't seem to be able to find exact errors now through log viewer.

Upvotes: 1

Views: 564

Answers (1)

cflewis
cflewis

Reputation: 7401

.MYI files indicate to me that you're using MyISAM. Cloud SQL strongly recommends you use InnoDB. Try changing your tables to use InnoDB instead, which the previous link also describes how to do.

Upvotes: 2

Related Questions