Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

reapir mysql table from php

 
   Database Forums (Home) -> PHP RSS
Next:  argument by reference?  
Author Message
steve




Joined: Jan 06, 2004
Posts: 655



(Msg. 1) Posted: Mon Sep 20, 2004 5:03 pm
Post subject: reapir mysql table from php

I have an on-going problem that my ".MYI" mysql files get corrupted. I have written php trapping routine to report on the problem to admin. My next step is to initiate "repair table" right after the error is trapped.

The problem is that then I would have multiple repair table commands initiated from different browser sessions. How can I make sure that only one "repair table" is running at a time.

 >> Stay informed about: reapir mysql table from php 
Back to top
Login to vote
Lucas3

External


Since: Jan 19, 2004
Posts: 7



(Msg. 2) Posted: Tue Sep 21, 2004 2:16 am
Post subject: Re: reapir mysql table from php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Steve,

you're coming home from the backyard. Try the front door. Why would
you want users(browser sessions) iniatiate the repair sequence? This
is usually done by a cron job. If this repair procedure should be
event driven you may want to put a database in between the cron job
and the client application. The application would check the integrity,
if a repair procedure is needed, the flag in database would be set.
Afterwards the only task for the cron-job would be checking the repair
flag and carrying out necessary operations, if required.

Best Regards,

Lucas


steve <UseLinkToEmail.TakeThisOut@dbForumz.com> wrote in message news:<414f45f2$1_2@alt.athenanews.com>...
 > I have an on-going problem that my ".MYI" mysql files get corrupted.
 > I have written php trapping routine to report on the problem to
 > admin. My next step is to initiate "repair table" right after the
 > error is trapped.
 >
 > The problem is that then I would have multiple repair table commands
 > initiated from different browser sessions. How can I make sure that
 > only one "repair table" is running at a time.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: reapir mysql table from php 
Back to top
Login to vote
Marcin Dobrucki2

External


Since: Sep 21, 2004
Posts: 1



(Msg. 3) Posted: Tue Sep 21, 2004 3:21 am
Post subject: Re: reapir mysql table from php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

steve wrote:
 > I have an on-going problem that my ".MYI" mysql files get corrupted.
 > I have written php trapping routine to report on the problem to
 > admin. My next step is to initiate "repair table" right after the
 > error is trapped.
 >
 > The problem is that then I would have multiple repair table commands
 > initiated from different browser sessions. How can I make sure that
 > only one "repair table" is running at a time.

Search for 'singleton class'

/Marcin<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: reapir mysql table from php 
Back to top
Login to vote
Marcin Dobrucki

External


Since: May 12, 2004
Posts: 11



(Msg. 4) Posted: Tue Sep 21, 2004 3:21 am
Post subject: Re: reapir mysql table from php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

steve wrote:
 > I have an on-going problem that my ".MYI" mysql files get corrupted.
 > I have written php trapping routine to report on the problem to
 > admin. My next step is to initiate "repair table" right after the
 > error is trapped.

Out of curiosity... how are you db files getting corrupted? Is the
server constantly shut off without a shutdown procedure? Perhaps
enabling logging on the filesystem and making sure the computer doesn't
creash is the way to go?

/m<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: reapir mysql table from php 
Back to top
Login to vote
steve




Joined: Jan 06, 2004
Posts: 655



(Msg. 5) Posted: Tue Sep 21, 2004 3:17 pm
Post subject: Re: reapir mysql table from php [Login to view extended thread Info.]

I have a server with heavy load. Once every few days, I get this corruption. I have posted on this ng with no results...

The server is constantly up, so it is not related to that.
 >> Stay informed about: reapir mysql table from php 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
quick way to add 1 to an integer value in a mysql table - Hi guys Does anyone know a quick way to add 1 to an integer value in a mysql table collumn. The way i use now is to extract the value from the appropriate collumn using select then use php to create a new value ($newnumber = $oldnumber +1) and then..

PHP 5.0 and MYSQL - Hi Guys, I have just upgrade my FC3 to FC4 and included was php 5.0. This apparently doesn't have the mysql client files that php 4.0 used to. I have enabled the mysql.so module in the mysql.ini file in /etc/php.d but still cannot get mysql to talk t...

mySQL and PHP - Greetings - Right to the point: I'm using mySQL and PHP on a webhost, and WordPress. ...and I'm very very very new to this stuff. Wordpress is what I'm using to make it easy for my pops to post articles. My index.php uses some code to pull from the..

New to PHP/MySQL - I'm new to PHP and MySQL. I've done a bit of web design but only basic HTML. Many years ago I did do a bit of foxbase/DBase programming and even some VB macros in excel. (probably no use now!) I'm looking to develop simple websites that require user..

--with-mysql ? - Hi I'm trying to link php-4.4.2 with mysql install in special directory, like /usr/newsystem/mysql, but whatever options I try, php always gets linked to version in /usr/local/lib. I've tried several options: --with-mysql=/usr/newsystem/mysql..
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]