Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I suppress MySQL errors?

Tags:

mysql

I have an issue where our database is receiving ~1000 updates a minute, and often we get an error response:

TAF: 1297 (HY000) at line 1: Got temporary error 899 'Rowid already allocated' from NDBCLUSTER

which appears in our application to our customer.

Is there any way to suppress these errors at the MySQL level? As I am not the developer of this application, I am not sure what language is performing the updates, but I presume either shell script or a C program.

I am using MySQL: 5.1.44-ndb-7.1.3-cluster-log (2 cluster nodes and 1 cluster mgmt node)

like image 773
Ben Ashton Avatar asked Jun 06 '12 19:06

Ben Ashton


People also ask

How can I see MySQL errors?

The SHOW COUNT(*) ERRORS statement displays the number of errors. You can also retrieve this number from the error_count variable: SHOW COUNT(*) ERRORS; SELECT @@error_count; SHOW ERRORS and error_count apply only to errors, not warnings or notes.


1 Answers

Have you tried using the 'IGNORE' clause in your SQL statements, the documentation for this is here

Using the IGNORE clause will downgrade errors to warnings, these warnings are displayed using the 'SHOW WARNINGS;' command

like image 72
Parsa Avatar answered Oct 05 '22 11:10

Parsa