I am not sure if you can do this from the Mysql CLI, but a better way of
doing this would be to use an external script like PHP, PERL, BASH,
etc as they have a better way of error checking againest Mysql.

Kishore Jalleda
http://kjalleda.googlepages.com/projects

On 4/3/06, C.R.Vegelin <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I use many scripts that are started from the CLI (MySQL 5.0.15).
> And if errors occur, I want to quit a script. I looked at:
> http://dev.mysql.com/doc/refman/5.0/en/show-errors.html
> and found Show Count(*) Errors; and for Select @@error_count;
> But how to quit a CLI script, if @@error_count > 0 ?
> Any ideas are most welcome.
>
> TIA, Cor
>

Reply via email to