List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:May 20 2002 2:42pm
Subject:Re: Check tables?
View as plain text  
Myisamchk returns an exit code.

if myisamchk myfile.MYI ; then
    do something
    do something else

Mark wrote:

>Is there a way I can do a "CHECK TABLES" which will return an exit code of
>some sort, to use in a shell-script? Looking at the output of a myisamchk is
>fun, but I rather have a utility too that will report an error-status that I
>can use to decide whether to make a backup/restore, etc.
>- Mark
>P.S. Keeping the bot happy: mysql
>Before posting, please check:
>   (the manual)
>           (the list archive)
>To request this thread, e-mail <mysql-thread109445@stripped>
>To unsubscribe, e-mail
> <>
>Trouble unsubscribing? Try:

Check tables?Mark18 May
  • Re: Check tables?Gerald Clark20 May