MYSQL Error Messages and Failure Codes from Error 2000 to 2010

SQLServerF1

Error: 2000 (CR_UNKNOWN_ERROR)
Message: Unknown MySQL error
Error: 2001 (CR_SOCKET_CREATE_ERROR)
Message: Can’t create UNIX socket (%d)
Error: 2002 (CR_CONNECTION_ERROR)
Message: Can’t connect to local MySQL server through socket ‘%s’ (%d)

Error: 2003 (CR_CONN_HOST_ERROR)
Message: Can’t connect to MySQL server on ‘%s’ (%d)
Error: 2004 (CR_IPSOCK_ERROR)
Message: Can’t create TCP/IP socket (%d)
Error: 2005 (CR_UNKNOWN_HOST)
Message: Unknown MySQL server host ‘%s’ (%d)

Error: 2006 (CR_SERVER_GONE_ERROR)
Message: MySQL server has gone away
Error: 2007 (CR_VERSION_ERROR)
Message: Protocol mismatch; server version = %d, client version = %d
Error: 2008 (CR_OUT_OF_MEMORY)
Message: MySQL client ran out of memory
Error: 2009 (CR_WRONG_HOST_INFO)
Message: Wrong host info
Error: 2010 (CR_LOCALHOST_CONNECTION)
Message: Localhost via UNIX socket

Above are MYSQL Error Codes from Error 2000 to 2010 received while performing certain operation against MYSQL Database or related products.

What are MYSQL Errors?
MySQL programs have access to several types of error information when the server returns an error.

The MYSQL message displayed contains three types of information:
A numeric error code. This number is MySQL-specific and is not portable to other database systems.
A five-character SQLSTATE value. The values are specified by ANSI SQL and ODBC and are more standardized. Not all MySQL error numbers are mapped to SQLSTATE error codes.
A message string that provides a textual description of the error.
When an error occurs, you can access the MySQL error code, the SQLSTATE value, and the message string using C API functions:
MySQL error code: Call mysql_errno()
SQLSTATE value: Call mysql_sqlstate()
Error message: Call mysql_error()

Hope this was helpful.

Thanks,
SQLServerF1 Team
Information about MYSQL Error Codes and Error Messages or Warnings on Windows, Linux Operating Systems.

 

Leave a Reply

Your email address will not be published. Required fields are marked *