Documentation Home
MySQL Internals Manual

26.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 Message Reference 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.

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.