Troubleshooting MYSQL or MariaDB Errors from Error 1000 to 1010

SQLServerF1

MariaDB ERROR Code 000
MySQL SQL State HY000
ER_HASHCHK
hashchk
MariaDB ERROR Code 1001
MySQL SQL State HY000
ER_NISAMCHK
isamchk
MariaDB ERROR Code 1002
MySQL SQL State HY000
ER_NO
NO
MariaDB ERROR Code 1003
MySQL SQL State HY000
ER_YES
YES

MariaDB ERROR Code 1004
MySQL SQL State HY000
ER_CANT_CREATE_FILE
Can’t create file ‘%s’ (errno: %d)
MariaDB ERROR Code 1005
MySQL SQL State HY000
ER_CANT_CREATE_TABLE
Can’t create table ‘%s’ (errno: %d)
MariaDB ERROR Code 1006
MySQL SQL State HY000
ER_CANT_CREATE_DB
Can’t create database ‘%s’ (errno: %d
MariaDB ERROR Code 1007
MySQL SQL State HY000
ER_DB_CREATE_EXISTS
Can’t create database ‘%s’; database exists

MariaDB ERROR Code 1008
MySQL SQL State HY000
ER_DB_DROP_EXISTS
Can’t drop database ‘%s’; database doesn’t exist
MariaDB ERROR Code 1009
MySQL SQL State HY000
ER_DB_DROP_DELETE
Error dropping database (can’t delete ‘%s’, errno: %d)
MariaDB ERROR Code 1010
MySQL SQL State HY000
ER_DB_DROP_RMDIR
Error dropping database (can’t rmdir ‘%s’, errno: %d)

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1000 to 1010 which performing certain operations against MySQL or MariaDB.

What are MYSQL/MariaDB Errors?

MySQL and MariaDB programs have access to several types of common error information when the server returns an error.

The MYSQL/MariaDB 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 and MariaDB 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 *