Error map

1062 replica Last_SQL_Errno: 1062 — Duplicate entry for key 'PRIMARY' on the replica

MySQL · layer 5, Data

Open the full error page →

Centre: this error. First ring: errors it is linked with (7). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

1062 replica — Last_SQL_Errno: 1062 — Duplicate entry for key 'PRIMARY' on the replica (MySQL)1062 replica1005 — MySQL ERROR 1005 (HY000): Can't create table (errno: 150 "Foreign key constraint is incorrectly formed") (MySQL)10051418 — MySQL ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (MySQL)14181007 — MySQL ERROR 1007 (HY000): Can't create database 'x'; database exists (MySQL)10071008 — MySQL ERROR 1008 (HY000): Can't drop database 'x'; database doesn't exist (MySQL)10081236 — Last_IO_Errno: 1236 — Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file' (MySQL)12361290 read-only — ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement (MySQL)1290 read-only1032 — Last_SQL_Errno: 1032 — Could not execute Delete_rows event on table; Can't find record in 'table' (MySQL)10321054 — MySQL ERROR 1054 (42S22): Unknown column in 'field list' (MySQL)10541452 — MySQL ERROR 1452: Cannot add or update a child row: a foreign key constraint fails (MySQL)1452GRAPHQL_VALIDATION_FAILED — GraphQL: Cannot query field "x" on type "Y" (API)GRAPHQL_VALIDATION_…1045 — MySQL ERROR 1045 (28000): Access denied for user (MySQL)10451044 — MySQL ERROR 1044 (42000): Access denied for user to database (MySQL)10441040 — MySQL ERROR 1040 (08004): Too many connections (MySQL)10401406 — MySQL ERROR 1406: Data too long for column (MySQL)14061051 — MySQL ERROR 1051 (42S02): Unknown table 'x' (MySQL)10511060 — MySQL ERROR 1060 (42S21): Duplicate column name 'x' (MySQL)10601067 — MySQL ERROR 1067 (42000): Invalid default value for 'created_at' (MySQL)10671071 — MySQL ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes (MySQL)10711075 — MySQL ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key (MySQL)10752013 — MySQL ERROR 2013 (HY000): Lost connection to MySQL server during query (MySQL)20131290 secure-file-priv — ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement (MySQL)1290 secure-file-pr…1862 — ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords (MySQL)18623140 — ERROR 3140 (22032): Invalid JSON text: "Invalid value." at position N in value for column 't.col' (MySQL)3140

Directly related (7)

Two steps away (16)

1054MySQL

MySQL ERROR 1054 (42S22): Unknown column in 'field list'

The query references a column that doesn’t exist in the table (or an unquoted string being read as a column).

1452MySQL

MySQL ERROR 1452: Cannot add or update a child row: a foreign key constraint fails

You inserted/updated a row whose foreign key value doesn’t exist in the referenced parent table.

GRAPHQL_VALIDATION_FAILEDAPI

GraphQL: Cannot query field "x" on type "Y"

The query asks for a field that doesn’t exist in the server’s schema (or isn’t available on that type).

1045MySQL

MySQL ERROR 1045 (28000): Access denied for user

MySQL rejected the login — wrong password, wrong user/host combination, or the user doesn’t exist.

1044MySQL

MySQL ERROR 1044 (42000): Access denied for user to database

The login succeeded, but the user has no privileges on the database you’re using.

1040MySQL

MySQL ERROR 1040 (08004): Too many connections

MySQL reached `max_connections` and refuses new clients.

1406MySQL

MySQL ERROR 1406: Data too long for column

The value is longer than the column allows (e.g. 300 characters into VARCHAR(255)), and strict mode rejects it instead of truncat…

1051MySQL

MySQL ERROR 1051 (42S02): Unknown table 'x'

DROP TABLE targeted a table that doesn’t exist.

1060MySQL

MySQL ERROR 1060 (42S21): Duplicate column name 'x'

A CREATE/ALTER adds a column that already exists, or a SELECT in a view/derived table produces two columns with the same name.

1067MySQL

MySQL ERROR 1067 (42000): Invalid default value for 'created_at'

A column’s DEFAULT isn’t allowed in the current SQL mode — classically '0000-00-00 00:00:00' with NO_ZERO_DATE.

1071MySQL

MySQL ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes

An index on a VARCHAR is too long for the row format — classic with utf8mb4 VARCHAR(255) on MySQL 5.6/MariaDB 10.1.

1075MySQL

MySQL ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key

An AUTO_INCREMENT column isn’t indexed (or there are two auto-increment columns).

2013MySQL

MySQL ERROR 2013 (HY000): Lost connection to MySQL server during query

The connection dropped mid-query — server crash/restart, timeouts, or a proxy cutting long queries.

1290 secure-file-privMySQL

ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

LOAD DATA / SELECT INTO OUTFILE is restricted to one directory (or disabled) by `secure_file_priv`.

1862MySQL

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords

The MySQL account's password has expired and the connection is restricted until it is changed.

3140MySQL

ERROR 3140 (22032): Invalid JSON text: "Invalid value." at position N in value for column 't.col'

A value written to a JSON column is not valid JSON.