Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 0.8Mb

25.3.1 Error Masking

Use error names instead of error numbers whenever possible.


--error ER_BAD_DB_ERROR 
USE <not existing database>; 

You can find the error names in the include/mysqld_error.h file of a MySQL source distribution, or in the Server Error Codes and Messages section of the MySQL Reference Manual]. NOTE: Don't do this with error numbers > 2000. Use of the error name does not seem to work well in these cases.

Download this Manual
EPUB - 0.8Mb
User Comments
Sign Up Login You must be logged in to post a comment.