Home

drupal.ls.net

Navigation

  • About
  • Blogs
  • Contact
  • Forums
  • Image galleries
  • Log in
  • Feed aggregator
Home Blogs webmaster's blog
    • Drupal
    • LSNet

Core security advisories

  • SA-CORE-2010-001 - Drupal core - Multiple vulnerabilities
  • SA-CORE-2009-009 - Drupal Core - Cross site scripting
more

Contrib security advisories

  • SA-CONTRIB-2010-026 - Monthly Archive by Node Type - Access Bypass
  • SA-CONTRIB-2010-025 - TinyMCE - Cross Site Scripting (XSS)
  • SA-CONTRIB-2010-024 - eTracker - Cross Site Scripting
  • SA-CONTRIB-2010-023 - Workflow - Cross Site Scripting
  • SA-CONTRIB-2010-022 - Internationalization - Arbitrary code execution
more

Drupal.org jobs feed

  • Senior Drupal Developer 10-114 | Pacific Coast Information Systems (PCIS)
  • Drupal Consultant for Q&A Session | AQUENT on behalf of client
  • Miami-based Drupal shop hiring Lead Developer and Lead Designer | Woven
  • Developer | Time Out New York
  • Lead Developer | Fuse IQ
more

Visit our client's websites

  • http://bridle-creek.com
  • http://demo.mydllurth.com
  • http://downtowngalax.com
  • http://drupal.ls.net
  • http://crossleft.org/
  • http://cuttingedgelaw.com/
  • http://new-river.dixongarner.com/
  • http://import.mydllurth.com
  • http://lyceum.mydllurth.com
  • http://mtvaleumc.org
  • http://news.mydllurth.com
  • http://oldcranks.com
  • http://psychguides.com
  • http://starbuck.net
  • http://stewartfurniture.com
  • http://tarvid.org
  • http://ubercart.ls.net
  • http://wolfeservices.net

Events

« March 2010 »
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031

Fixing Crashed MySQL Tables

Submitted by webmaster on Fri, 08/07/2009 - 00:18

Note: the gremlins came back today. The sessions table had mushroomed in size. I had to repair it before I could empty it but life seems better now.

 

I found one of the web servers unresponsive on Wednesday morning. Worse, the router between my workstation and the web server was gasping. In a rash attempt to improve life on the router, I thoroughly trashed it. But that is another story.

A visit to the NOC confirmed the router was just a herring in the kettle and after banging off the wrong server, I finally bounced the web server I was trying to reach. It came back up without complaint but I have been running into error messages like this:

Warning: Table './downtown/sessions' is marked as crashed and should be repaired query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = 'c77834b830ccb47e38d2943454aba057' in /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc on line 128

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc:128) in /home/lsnet/public_html/downtowngalax.com/includes/bootstrap.inc on line 1031

Warning: Table './downtown/variable' is marked as crashed and should be repaired query: SELECT * FROM variable in /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc:128) in /home/lsnet/public_html/downtowngalax.com/includes/bootstrap.inc on line 630

Warning: Cannot modify header information - headers already sent by (output started at /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc:128) in /home/lsnet/public_html/downtowngalax.com/includes/bootstrap.inc on line 631

Warning: Cannot modify header information - headers already sent by (output started at /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc:128) in /home/lsnet/public_html/downtowngalax.com/includes/bootstrap.inc on line 632

Warning: Cannot modify header information - headers already sent by (output started at /home/lsnet/public_html/downtowngalax.com/includes/database.mysql.inc:128) in /home/lsnet/public_html/downtowngalax.com/includes/bootstrap.inc on line 633

MySQL has multiple storage engines but I am using ISAM for this database and the recovery method is straightforward. The crashed files are owned by "mysql" (not me) so I need "root" access. If I were an "ordinary" user on a shared hosting server, my only recourse would be to contact my "sysadmin" who would have to perform the following:

root@galax:/var/lib/mysql/drupal# myisamchk -r sessions
root@galax:/var/lib/mysql/drupal# myisamchk -r variable

There may be others so the prudent (and reasonably safe) move is to:

root@galax:/var/lib/mysql/drupal# myisamchk -r *.MYI

If you are one of our web customers, you should not be able to do this (there would have to be a rotten herring in the kettle). Use the contact form or leave a voice mail message.

 

  • webmaster's blog
  • Login or register to post comments
  • Printer-friendly version
  • Send to friend
  • PDF version
  • Delicious
  • Digg
  • StumbleUpon
  • Facebook
  • Google
  • Technorati

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Powered by Drupal, an open source content management system
RoopleTheme