Database error codes
Use the database’s code and message together to identify the cause of a failed operation.
Symptoms
Section titled “Symptoms”Errors can contain a code, a message, or both:
28P01: password authentication failed for user1045: Access denied for user23505: duplicate key value violates unique constraintdatabase is lockedTableAI presents database errors alongside operation details, such as a failed save or import outcome.
Quick checks for database error codes
Section titled “Quick checks for database error codes”- Open View Details on the error notification, if offered.
- Read What happened for the database cause and suggested action.
- Expand Raw Error or Parsed Technical Details when more information is needed.
- 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.
PostgreSQL SQLSTATEs
Section titled “PostgreSQL SQLSTATEs”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 error numbers
Section titled “MySQL error numbers”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.
SQLite messages
Section titled “SQLite messages”| 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.
SQL Server login errors
Section titled “SQL Server login errors”Error 18456, Login failed for user, identifies a rejected SQL Server login. Start with the connection checks and the SQL Server guide.
Still stuck
Section titled “Still stuck”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.