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-002 - Drupal core - Multiple vulnerabilities
more

Contrib security advisories

  • SA-CONTRIB-2010-089 - Simplenews Content Selection - Cross Site Scripting
  • SA-CONTRIB-2010-088 - Content Construction Kit (CCK) - Access Bypass
  • SA-CONTRIB-2010-087 - GovDelivery - Cross site scripting
  • SA-CONTRIB-2010-086 - Prepopulate - Access Bypass
  • SA-CONTRIB-2010-085 - Pathauto - Cross Site Scripting
more

Drupal security announcements

  • PSA-2010-002 - Views - Administer views permission
  • PSA-2010-001: Policy on release versions and permissions
more

Drupal.org jobs feed

  • Marketing Website Developer | Western Governors University
  • Coder | Fidoli Bilişim Teknolojileri
  • Drupal developer | ubergig
  • Javascript developer | ubergig
  • Web Developer | MIT
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

« September 2010
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930

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