I have a similar problem to this..

 What happens is somehow something is causing mysql to hang which forces
it to reach max connections.. if i shutdown and restart mysql using
safe_mysqld --skip=networking it starts fine.. will do selects fine but
not inserts because the tables that were being inserted to while the
hang caught have become currupted.. I shutdown mysql, myisamchk -r the
tables, it reports the tables were fixed. I then restart mysql and when
trying to insert into the fixed table it just hangs forever.. if i do a
drop on the table and recreate it it goes back to working fine.. so it
seems the myisamchk is not fixing the tables..
any clues?

-- 
Webmaster
AngelHaven.com



Gerald Clark wrote:
> 
> Shut down the server before repairing tables.
> 
> Robert Clugston wrote:
> 
> > List,
> >     I'm having some serious problems with MySQL. I have some PHP and perl
> > scripts that do INSERTs into MySQL. Multiple times during the day various
> > tables become corrupted.
> >     Repairing the table using myisamchk with "-r" usually fixes the problem,
> > but sometimes I have to restart mysqld to get things working again. Any
> > ideas as to what is going on or how to fix this?
> >
> > /var/site/mysql/libexec/mysqld -V
> > /var/site/mysql/libexec/mysqld  Ver 3.23.36 for unknown-openbsd2.7 on i386
> > /var/site/mysql/bin/myisamchk: ISAM file
> > /var/site/mysql/var/MailingList/MailingList.MYI
> > /var/site/mysql/bin/myisamchk: error: Size of datafile is: 280400 Should be:
> > 281328
> > /var/site/mysql/bin/myisamchk: error: Found key at page 38912 that points to
> > record outside datafile
> > /var/site/mysql/bin/myisamchk: error: Record-count is not ok; is 4723 Should
> > be: 4738
> > /var/site/mysql/bin/myisamchk: warning: Found 4723 parts Should be: 4738
> > parts
> > MyISAM-table '/var/site/mysql/var/MailingList/MailingList.MYI' is corrupted
> > Fix it using switch "-r" or "-o"
> > /var/site/mysql/bin/myisamchk: ISAM file
> > /var/site/mysql/var/bob/announcements_mailinglist.MYI
> > /var/site/mysql/bin/myisamchk: error: Size of datafile is: 203460 Should be:
> > 204312
> > /var/site/mysql/bin/myisamchk: error: Found key at page 38912 that points to
> > record outside datafile
> > /var/site/mysql/bin/myisamchk: error: Record-count is not ok; is 4783 Should
> > be: 4804
> > /var/site/mysql/bin/myisamchk: warning: Found 4783 parts Should be: 4804
> > parts
> > MyISAM-table '/var/site/mysql/var/bob/announcements_mailinglist.MYI' is
> > corrupted
> > Fix it using switch "-r" or "-o"
> > /var/site/mysql/bin/myisamchk: ISAM file /var/site/mysql/var/bob/contest.MYI
> > /var/site/mysql/bin/myisamchk: error: Size of datafile is: 195772 Should be:
> > 196040
> > /var/site/mysql/bin/myisamchk: error: Found key at page 35840 that points to
> > record outside datafile
> > /var/site/mysql/bin/myisamchk: error: Record-count is not ok; is 4358 Should
> > be: 4364
> > /var/site/mysql/bin/myisamchk: warning: Found 4358 parts Should be: 4364 par
> > ts
> > MyISAM-table '/var/site/mysql/var/bob/contest.MYI' is corrupted
> > Fix it using switch "-r" or "-o"
> > /var/site/mysql/bin/myisamchk: MyISAM file
> > /var/site/mysql/var/bob/bob_eval.MYI
> > /var/site/mysql/bin/myisamchk: warning: 1 clients is using or hasn't closed
> > the table properly
> > /var/site/mysql/bin/myisamchk: error: Size of datafile is: 3276 Should be:
> > 3344
> > /var/site/mysql/bin/myisamchk: error: Found key at page 1024 that points to
> > record outside datafile
> > /var/site/mysql/bin/myisamchk: error: Record-count is not ok; is 96 Should
> > be: 98
> > /var/site/mysql/bin/myisamchk: warning: Found 96 parts Should be: 98 parts
> > MyISAM-table '/var/site/mysql/var/bob/bob_eval.MYI' is corrupted
> > Fix it using switch "-r" or "-o"
> >
> >
> >
> > ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> >
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail 
><[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> --
> Gerald L. Clark
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

--------------------------------------------------
Sign up for your free AngelHaven E-mail Today...
Join the growing community, http://www.AngelHaven.com 
Come Cruisin with the Angels http://www.AngelCruise.com

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to