While common wisdom (google) tells us, that this error is related to the MySQL server running out of memory, or a potential database problem (repair tables), neither apply in my case. In fact the error seems to go away once I disable the cache.
On top of that I have several issues with the cache (race conditions). It appears to me, that the cache could see some improvements.
(Duplicate Entry warning).
While there is a patch on drupal.org to deal with the Duplicate Entry warning (simply suppressing it to be printed out), the Error 12 remains, so I have to turn off caching.
A second site, that does not see as much traffic, does not have this problem, possibly because race conditions are less likely with less traffic. Naturally the site with more traffic would benefit more from the cache.
I am more than happy to provide more detailed information if necessary.
Since the error 12 does not affect the way the page is rendered (except for being printed out), one could simply suppress it from being shown on the page, but this doesn't cure the sickness just the symptoms.

Comments

dopry’s picture

Status: Active » Closed (won't fix)

I haven't experienced this problem on any of my sites running using caching.

If disabling caching prevents the error, I would assume the cache table is getting corrupted on your site. Normally halting the DB server and a (if you are using ISAM tables) myisamcheck will fix the problem.

I don't see than anyone else is reporting the same error. I'm setting this to a won't fix for now. If someone can duplicate this, by all means reopen it.

pyrello’s picture

I am now having the same problem with my site.

andre75’s picture

I haven't seen it after switching hosts.

cutesimaus’s picture

I get this error too.
My cache is disabled. I am using Drupal 4.7

My hosting is complaining that my website have been crashing mysql. If I switch webhost provider, will the situation improve? Or is the problem with my drupal site?

sageroo’s picture

Version: 4.6.3 » 5.1

I am having that same problem on my server hosted through MediaTemple.

check it out at:
http://www.tallentsmith.com/cms/

Here is the error
user warning: Got error 12 from storage engine query: SELECT data, created, headers, expire FROM cache_menu WHERE cid = '1:en' in /home/5261/domains/tallentsmith.com/html/cms/includes/database.mysql.inc on line 172.

I have drupal working fine on another domain on the same server.
I am running 5.1

RobRoy’s picture

Google is your friend for this one: http://forums.mysql.com/read.php?21,71414,71667#msg-71667

It's that MySQL is out of memory. You should contact MediaTemple and let them know.

Francis Pilon’s picture

I have had this issue happening when there was no more room left on the hard drive...

piraxter’s picture

Yes I have the same problem after of run cron.php in AN hosting aka midphase !

:S

mr.andrey’s picture

subscribing...