MYSQL Error Messages and Failure Codes from Error 1221 to 1230

SQLServerF1

Error: 1221 SQLSTATE: HY000 (ER_WRONG_USAGE)
Message: Incorrect usage of %s and %s
Error: 1222 SQLSTATE: 21000 (ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT)
Message: The used SELECT statements have a different number of columns
Error: 1223 SQLSTATE: HY000 (ER_CANT_UPDATE_WITH_READLOCK)
Message: Can’t execute the query because you have a conflicting read lock

Error: 1224 SQLSTATE: HY000 (ER_MIXING_NOT_ALLOWED)
Message: Mixing of transactional and non-transactional tables is disabled
Error: 1225 SQLSTATE: HY000 (ER_DUP_ARGUMENT)
Message: Option ‘%s’ used twice in statement
Error: 1226 SQLSTATE: 42000 (ER_USER_LIMIT_REACHED)
Message: User ‘%s’ has exceeded the ‘%s’ resource (current value: %ld)
Error: 1227 SQLSTATE: 42000 (ER_SPECIFIC_ACCESS_DENIED_ERROR)
Message: Access denied; you need (at least one of) the %s privilege(s) for this operation

Error: 1228 SQLSTATE: HY000 (ER_LOCAL_VARIABLE)
Message: Variable ‘%s’ is a SESSION variable and can’t be used with SET GLOBAL
Error: 1229 SQLSTATE: HY000 (ER_GLOBAL_VARIABLE)
Message: Variable ‘%s’ is a GLOBAL variable and should be set with SET GLOBAL
Error: 1230 SQLSTATE: 42000 (ER_NO_DEFAULT)
Message: Variable ‘%s’ doesn’t have a default value

Above are MYSQL Error Codes from Error 1221 to 1230 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 *