Troubleshooting MYSQL or MariaDB Errors from Error 1581 to 1590

SQLServerF1

MariaDB ERROR Code 1581
MySQL SQL State HY000
ER_CANT_RENAME_LOG_TABLE
Cannot rename ‘%s’. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to ‘%s’
MariaDB ERROR Code 1582
MySQL SQL State 42000
ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
Incorrect parameter count in the call to native function ‘%s’
MariaDB ERROR Code 1583
MySQL SQL State 42000
ER_WRONG_PARAMETERS_TO_NATIVE_FCT
Incorrect parameters in the call to native function ‘%s’

MariaDB ERROR Code 1584
MySQL SQL State 42000
ER_WRONG_PARAMETERS_TO_STORED_FCT
Incorrect parameters in the call to stored function ‘%s’
MariaDB ERROR Code 1585
MySQL SQL State HY000
ER_NATIVE_FCT_NAME_COLLISION
This function ‘%s’ has the same name as a native function
MariaDB ERROR Code 1586
MySQL SQL State 23000
ER_DUP_ENTRY_WITH_KEY_NAME
Duplicate entry ‘%s’ for key ‘%s’ Note: This error string is also used with ER_DUP_ENTRY.

MariaDB ERROR Code 1587
MySQL SQL State HY000
ER_BINLOG_PURGE_EMFILE
Too many files opened, please execute the command again
MariaDB ERROR Code 1588
MySQL SQL State HY000
ER_EVENT_CANNOT_CREATE_IN_THE_PAST
Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
MariaDB ERROR Code 1589
MySQL SQL State HY000
ER_EVENT_CANNOT_ALTER_IN_THE_PAST
Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
MariaDB ERROR Code 1590
MySQL SQL State HY000
ER_SLAVE_INCIDENT
The incident %s occured on the master. Message: %s

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1581 to 1590 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1551 to 1560

SQLServerF1

MariaDB ERROR Code 1551
MySQL SQL State HY000
ER_EVENT_SAME_NAME
Same old and new event name
MariaDB ERROR Code 1552
MySQL SQL State HY000
ER_EVENT_DATA_TOO_LONG
Data for column ‘%s’ too long
MariaDB ERROR Code 1553
MySQL SQL State HY000
ER_DROP_INDEX_FK
Cannot drop index ‘%s’: needed in a foreign key constraint

MariaDB ERROR Code 1554
MySQL SQL State HY000
ER_WARN_DEPRECATED_SYNTAX_WITH_VER
The syntax ‘%s’ is deprecated and will be removed in MariaDB %s. Please use %s instead
MariaDB ERROR Code 1555
MySQL SQL State HY000
ER_CANT_WRITE_LOCK_LOG_TABLE
You can’t write-lock a log table. Only read access is possible
MariaDB ERROR Code 1556
MySQL SQL State HY000
ER_CANT_LOCK_LOG_TABLE
You can’t use locks with log tables.

MariaDB ERROR Code 1557
MySQL SQL State 23000
ER_FOREIGN_DUPLICATE_KEY
Upholding foreign key constraints for table ‘%s’, entry ‘%s’, key %d would lead to a duplicate entry
MariaDB ERROR Code 1558
MySQL SQL State HY000
ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE
Column count of mysql.%s is wrong. Expected %d, found %d. Created with MariaDB %d, now running %d. Please use mysql_upgrade to fix this error.
MariaDB ERROR Code 1559
MySQL SQL State HY000
ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR
Cannot switch out of the row-based binary log format when the session has open temporary tables
MariaDB ERROR Code 1560
MySQL SQL State HY000
ER_STORED_FUNCTION_ PREVENTS_SWITCH_BINLOG_FORMAT
Cannot change the binary logging format inside a stored function or trigger

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1551 to 1560 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1451 to 1460

SQLServerF1

MariaDB ERROR Code 1451
MySQL SQL State 23000
ER_ROW_IS_REFERENCED_2
Cannot delete or update a parent row: a foreign key constraint fails (%s)
MariaDB ERROR Code 1452
MySQL SQL State 23000
ER_NO_REFERENCED_ROW_2
Cannot add or update a child row: a foreign key constraint fails (%s)
MariaDB ERROR Code 1453
MySQL SQL State 42000
ER_SP_BAD_VAR_SHADOW
Variable ‘%s’ must be quoted with `…`, or renamed

MariaDB ERROR Code 1454
MySQL SQL State HY000
ER_TRG_NO_DEFINER
No definer attribute for trigger ‘%s’.’%s’. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger.
MariaDB ERROR Code 1455
MySQL SQL State HY000
ER_OLD_FILE_FORMAT
‘%s’ has an old format, you should re-create the ‘%s’ object(s)
MariaDB ERROR Code 1456
MySQL SQL State HY000
ER_SP_RECURSION_LIMIT
Recursive limit %d (as set by the max_sp_recursion_depth variable) was exceeded for routine %s

MariaDB ERROR Code 1457
MySQL SQL State HY000
ER_SP_PROC_TABLE_CORRUPT
Failed to load routine %s. The table mysql.proc is missing, corrupt, or contains bad data (internal code %d)
MariaDB ERROR Code 1458
MySQL SQL State 42000
ER_SP_WRONG_NAME
Incorrect routine name ‘%s’
MariaDB ERROR Code 1459
MySQL SQL State HY000
ER_TABLE_NEEDS_UPGRADE Table upgrade required. Please do “REPAIR TABLE `%s`” or dump/reload to fix it!
MariaDB ERROR Code 1460
MySQL SQL State 42000
ER_SP_NO_AGGREGATE
AGGREGATE is not supported for stored functions

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1451 to 1460 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 2110 to 1220

SQLServerF1

MariaDB ERROR Code 2110
MySQL SQL State 42000
ER_NO_PERMISSION_TO_CREATE_USER
‘%s’@’%s’ is not allowed to create new users
MariaDB ERROR Code 1212
MySQL SQL State HY000
ER_UNION_TABLES_IN_DIFFERENT_DIR
Incorrect table definition; all MERGE tables must be in the same database
MariaDB ERROR Code 1213
MySQL SQL State 40001
ER_LOCK_DEADLOCK
Deadlock found when trying to get lock; try restarting transaction

MariaDB ERROR Code 1214
MySQL SQL State HY000
ER_TABLE_CANT_HANDLE_FT
The used table type doesn’t support FULLTEXT indexes
MariaDB ERROR Code 1215
MySQL SQL State HY000
ER_CANNOT_ADD_FOREIGN
Cannot add foreign key constraint
MariaDB ERROR Code 1216
MySQL SQL State 23000
ER_NO_REFERENCED_ROW
Cannot add or update a child row: a foreign key constraint fails

MariaDB ERROR Code 1217
MySQL SQL State 23000
ER_ROW_IS_REFERENCED
Cannot delete or update a parent row: a foreign key constraint fails
MariaDB ERROR Code 1218
MySQL SQL State 08S01
ER_CONNECT_TO_MASTER
Error connecting to master: %s
MariaDB ERROR Code 1219
MySQL SQL State HY000
ER_QUERY_ON_MASTER
Error running query on master: %s
MariaDB ERROR Code 1220
MySQL SQL State HY000
ER_ERROR_WHEN_EXECUTING_COMMAND
Error when executing command %s: %s

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 2110 to 1220 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1161 to 1170

SQLServerF1

MariaDB ERROR Code 1161
MySQL SQL State 08S01
ER_NET_WRITE_INTERRUPTED
Got timeout writing communication packets
MariaDB ERROR Code 1162
MySQL SQL State 42000
ER_TOO_LONG_STRING
Result string is longer than ‘max_allowed_packet’ bytes
MariaDB ERROR Code 1163
MySQL SQL State 42000
ER_TABLE_CANT_HANDLE_BLOB
The used table type doesn’t support BLOB/TEXT columns

MariaDB ERROR Code 1164
MySQL SQL State 42000
ER_TABLE_CANT_HANDLE_AUTO_INCREMENT
The used table type doesn’t support AUTO_INCREMENT columns
MariaDB ERROR Code 1165
MySQL SQL State HY000
ER_DELAYED_INSERT_TABLE_LOCKED
INSERT DELAYED can’t be used with table ‘%s’ because it is locked with LOCK TABLESMySQL SQL State
MariaDB ERROR Code 1166
MySQL SQL State 42000
ER_WRONG_COLUMN_NAME
Incorrect column name ‘%s’

MariaDB ERROR Code 1167
MySQL SQL State 42000
ER_WRONG_KEY_COLUMN
The used storage engine can’t index column ‘%s’
MariaDB ERROR Code 1168
MySQL SQL State HY000
ER_WRONG_MRG_TABLE
Unable to open underlying table which is differently defined or of non-MyISAM type or doesn’t exist
MariaDB ERROR Code 1169
MySQL SQL State 23000
ER_DUP_UNIQUE
Can’t write, because of unique constraint, to table ‘%s’
MariaDB ERROR Code 1170
MySQL SQL State 42000
ER_BLOB_KEY_WITHOUT_LENGTH
BLOB/TEXT column ‘%s’ used in key specification without a key length

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1161 to 1170 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1061 to 1070

SQLServerF1

MariaDB ERROR Code 1061
MySQL SQL State 42000
ER_DUP_KEYNAME
Duplicate key name ‘%s’
MariaDB ERROR Code 1062
MySQL SQL State 23000
ER_DUP_ENTRY
Duplicate entry ‘%s’ for key %d The message returned with this error uses the format string for ER_DUP_ENTRY_WITH_KEY_NAME.
MariaDB ERROR Code 1063
MySQL SQL State 42000
ER_WRONG_FIELD_SPEC
Incorrect column specifier for column ‘%s’

MariaDB ERROR Code 1064
MySQL SQL State 42000
ER_PARSE_ERROR
%s near ‘%s’ at line %d
MariaDB ERROR Code 1065
MySQL SQL State 42000
ER_EMPTY_QUERY
Query was empty
MariaDB ERROR Code 1066
MySQL SQL State 42000
ER_NONUNIQ_TABLE
Not unique table/alias: ‘%s’

MariaDB ERROR Code 1067
MySQL SQL State 42000
ER_INVALID_DEFAULT
Invalid default value for ‘%s’
MariaDB ERROR Code 1068
MySQL SQL State 42000
ER_MULTIPLE_PRI_KEY
Multiple primary key defined
MariaDB ERROR Code 1069
MySQL SQL State 42000
ER_TOO_MANY_KEYS
Too many keys specified; max %d keys allowed
MariaDB ERROR Code 1070
MySQL SQL State 42000
ER_TOO_MANY_KEY_PARTS
Too many key parts specified; max %d parts allowed

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1061 to 1070 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1051 to 1060

SQLServerF1

MariaDB ERROR Code 1051
MySQL SQL State 42S02
ER_BAD_TABLE_ERROR
Unknown table ‘%s’
MariaDB ERROR Code 1052
MySQL SQL State 23000
ER_NON_UNIQ_ERROR
Column ‘%s’ in %s is ambiguous
MariaDB ERROR Code 1053
MySQL SQL State 08S01
ER_SERVER_SHUTDOWN
Server shutdown in progress

MariaDB ERROR Code 1054
MySQL SQL State 42S22
ER_BAD_FIELD_ERROR
Unknown column ‘%s’ in ‘%s’
MariaDB ERROR Code 1055
MySQL SQL State 42000
ER_WRONG_FIELD_WITH_GROUP
‘%s’ isn’t in GROUP BY
MariaDB ERROR Code 1056
MySQL SQL State 42000
ER_WRONG_GROUP_FIELD
Can’t group on ‘%s’

MariaDB ERROR Code 1057
MySQL SQL State 42000
ER_WRONG_SUM_SELECT
Statement has sum functions and columns in same statement
MariaDB ERROR Code 1058
MySQL SQL State 21S01
ER_WRONG_VALUE_COUNT
Column count doesn’t match value count
MariaDB ERROR Code 1059
MySQL SQL State 42000
ER_TOO_LONG_IDENT
Identifier name ‘%s’ is too long
MariaDB ERROR Code 1060
MySQL SQL State 42S21
ER_DUP_FIELDNAME
Duplicate column name ‘%s’

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1051 to 1060 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1041 to 1050

SQLServerF1

MariaDB ERROR Code 1041
MySQL SQL State HY000
ER_OUT_OF_RESOURCES
Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use ‘ulimit’ to allow mysqld to use more memory or you can add more swap space
MariaDB ERROR Code 1042
MySQL SQL State 08S01
ER_BAD_HOST_ERROR
Can’t get hostname for your address
MariaDB ERROR Code 1043
MySQL SQL State 08S01
ER_HANDSHAKE_ERROR
Bad handshake

MariaDB ERROR Code 1044
MySQL SQL State 42000
ER_DBACCESS_DENIED_ERROR
Access denied for user ‘%s’@’%s’ to database ‘%s’
MariaDB ERROR Code 1045
MySQL SQL State 28000
ER_ACCESS_DENIED_ERROR
Access denied for user ‘%s’@’%s’ (using password: %s)
MariaDB ERROR Code 1046
MySQL SQL State 3D000
ER_NO_DB_ERROR
No database selected

MariaDB ERROR Code 1047
MySQL SQL State 08S01
ER_UNKNOWN_COM_ERROR
Unknown command
MariaDB ERROR Code 1048
MySQL SQL State 23000
ER_BAD_NULL_ERROR
Column ‘%s’ cannot be null
MariaDB ERROR Code 1049
MySQL SQL State 42000
ER_BAD_DB_ERROR
Unknown database ‘%s’
MariaDB ERROR Code 1050
MySQL SQL State 42S01
ER_TABLE_EXISTS_ERROR
Table ‘%s’ already exists

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1041 to 1050 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.

 

Troubleshooting MYSQL or MariaDB Errors from Error 1021 to 1030

SQLServerF1

MariaDB ERROR Code 1021
MySQL SQL State HY000
ER_DISK_FULL
Disk full (%s); waiting for someone to free some space…
MariaDB ERROR Code 1022
MySQL SQL State 23000
ER_DUP_KEY
Can’t write; duplicate key in table ‘%s’
MariaDB ERROR Code 1023
MySQL SQL State HY000
ER_ERROR_ON_CLOSE
Error on close of ‘%s’ (errno: %d)

MariaDB ERROR Code 1024
MySQL SQL State HY000
ER_ERROR_ON_READ
Error reading file ‘%s’ (errno: %d)
MariaDB ERROR Code 1025
MySQL SQL State HY000
ER_ERROR_ON_RENAME
Error on rename of ‘%s’ to ‘%s’ (errno: %d)
MariaDB ERROR Code 1026
MySQL SQL State HY000
ER_ERROR_ON_WRITE
Error writing file ‘%s’ (errno: %d)

MariaDB ERROR Code 1027
MySQL SQL State HY000
ER_FILE_USED
‘%s’ is locked against change
MariaDB ERROR Code 1028
MySQL SQL State HY000
ER_FILSORT_ABORT
Sort aborted
MariaDB ERROR Code 1029
MySQL SQL State HY000
ER_FORM_NOT_FOUND
View ‘%s’ doesn’t exist for ‘%s’
MariaDB ERROR Code 1030
MySQL SQL State HY000
ER_GET_ERRN
Got error %d from storage engine

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1021 to 1030 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.