Skip to content

Database error codes

Use the database’s code and message together to identify the cause of a failed operation.

Errors can contain a code, a message, or both:

28P01: password authentication failed for user
1045: Access denied for user
23505: duplicate key value violates unique constraint
database is locked

TableAI presents database errors alongside operation details, such as a failed save or import outcome.

  1. Open View Details on the error notification, if offered.
  2. Read What happened for the database cause and suggested action.
  3. Expand Raw Error or Parsed Technical Details when more information is needed.
  4. Match the code or message below.

Keep a rollback summary separate from the error that caused it. Read edit was rejected before repeating an interrupted write.

A SQLSTATE has five characters. Use the complete code, including letters.

Code Message and repair guide
28P01 Password authentication failed
53300 Too many clients already
42501 Permission denied
23505 Duplicate key violates unique constraint
40P01 Deadlock detected

See the PostgreSQL guide for connection and SQL tasks.

MySQL errors can include both a number and a SQLSTATE. The linked guides use the error number.

Number Message and repair guide
1045 Access denied for user
2002 or 2003 Cannot connect to the MySQL server
1062 Duplicate entry for key
1213 Deadlock found when trying to get lock

For setup details, use the MySQL or MariaDB guide.

Message Repair guide
database is locked Resolve a database lock
attempt to write a readonly database Restore write access

These errors concern the database file or its connections. A grid’s Read-only status has a separate explanation. See the SQLite guide for file setup.

Error 18456, Login failed for user, identifies a rejected SQL Server login. Start with the connection checks and the SQL Server guide.

For an unlisted code, keep the full server message and the operation that failed. Continue with connection failures, SQL execution, or rejected edits as appropriate.

Review error text for private values before including it in a support report.