I'm getting a sql error when I try to login or run cron.php.

Warning: Can't open file: 'watchdog.MYI' (errno: 145) query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Can't open file: 'watchdog.MYI' (errno: 145)\nquery: DELETE FROM watchdog WHERE timestamp < 1149702748 in /includes/database.mysql.inc on line 120.', 2, '', '/cron.php', '', 1150307548) in /includes/database.mysql.inc on line 120

Is this a MySQL server error? Has anybody else run into this problem?

Site is live and has been running fine using 4.7.2. I've also sent a request to my host to have them look into it.

Comments

robertdouglass’s picture

using 4.0.24_Debian-10sarge2-log

-Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

v1nce’s picture

this was due to the server i was hosting on and had the mysql server restarted which corrected the problem.

robertdouglass’s picture

There are several ways to fix it; I'd sure like to find out why it keeps happening on one particular installation. Usually, running "REPAIR TABLE" from the mysql command line will work, but in one case I had to remove the .MYI file manually and rebuild the table from the backup. Grr.

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

janne’s picture

Scary stuff! I'm a total dummie when it comes to fiddling with databases and stuff. But *Repair table" worked. Thanks a million!

mcduarte2000’s picture

I only happened since I had the 4.7.2, probably is really a bug in this version... :(

To solve it I had to empty this tables:

cache
sessions
watchdog

After this, everything is running just fine again...

Miguel Duarte

Webmaster of: Lisbon Guide & Love Poems

beginner’s picture

See this support request issue:
http://drupal.org/node/69693

--
http://www.reuniting.info/
Healing with Sexual Relationships.
http://www.wechange.org/
We live in a world of solutions.