Here at Bobcares, we provide Server Administration and Maintenance services to website owners and web solution providers.
An error we sometimes see in MySQL servers while updating, restoring or replicating databases is: “Error No: 1062” or “Error Code: 1062” or “ERROR 1062 (23000)“
A full error log that we recently saw in a MySQL cluster is:
could not execute Write_rows event on table mydatabasename.atable; Duplicate entry ’174465′ for key ‘PRIMARY’, Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event’s master log mysql-bin.000004, end_log_pos 60121977
What is MySQL Error No: 1062?
Simply put, error 1062 is displayed when MySQL finds a DUPLICATE of a row you are trying to insert.
We’ve seen primarily 4 reasons for this error:
- The web application has a bug that adds primary key by large increments, and exhausts the field limit.
- MySQL cluster replication tries to re-insert a field.
- A database dump file contains duplicate rows because of coding error.
- MySQL index table has duplicate rows.
In rare cases, this error is shown when the table becomes too big, but let’s not worry about that for now.
How to fix Error No 1062 when your web appilcation is broken
Every database driven application like WordPress, Drupal or OpenCart distinguishes one user or data set from another using something called a “primary field”.
This primary field should be unique for each user, post, etc.
Web apps use a code like this to insert data:
INSERT INTO table ('id','field1','field2','field3') VALUES ('NULL','data1','data2','data3');
Where “id” is the unique primar key, and is set to auto-increment (that is a number inserted will always be greater than the previous one so as to avoid duplicates).
This will work right if the value inserted is “NULL” and database table is set to “auto-increment”.
Some web apps make the mistake of passing the value as
VALUES ('','data1','data2','data3');
where the first field is omitted. This will insert random numbers into the primary field, rapidly increasing the number to the maximum field limit (usually 2147483647 for numbers).
All subsequent queries will again try to over-write the field with “2147483647”, which MySQL interprets as a Duplicate.
Web app error solution
When we see a possible web application code error, the developers at our Website Support Services create a patch to the app file that fixes the database query.
Now, we have the non-sequential primary key table to be fixed.
For that, we create a new column (aka field), set it as auto-increment, and then make it the primary key.
The code looks approximately like this:
alter table table1 drop primary key;
alter table table1 add field2 int not null auto_increment primary key;
Once the primary key fields are filled with sequential values, the name of the new field can be changed to the old one, so that all web app queries will remain the same.
Warning : These commands can get very complex, very fast. So, if you are not sure how these commads work, it’s best to get expert assistance.
Click here to talk to our MySQL administrators. We are online 24/7 and can help you within a few minutes.
How to fix MySQL replication Error Code : 1062
Due to quirks in network or synching MySQL is sometimes known to try and write a row when it is already present in the slave.
So, when we see this error in a slave, we try either one of the following depending on many factors such as DB write traffic, time of day etc.
- Delete the row – This is the faster and safer way to continue if you know that the row being written is exactly the same as what’s already present.
- Skip the row – If you are not sure there’d be a data loss, you can try skipping the row.
How to delete the row
First delete the row using the primary key.
delete from table1 where field1 is key1;
Then stop and start the slave:
stop slave;
start slave;
select sleep(5);
Once it is done, check the slave status to see if replication is continuing.
show slave status;
If all is well, you’ll see “Seconds_Behind_Master” as a number. If not, your replication is broken and it needs to be fixed.
How to skip the row
For this, you can set the Skip counter to 1.
Here’s how it could look like:
stop slave;
set global SQL_SLAVE_SKIP_COUNTER = 1;
start slave;
select sleep(5);
Then check the slave status to see if replication is continuing.
show slave status;
Again, if all is well, you’ll see “Seconds_Behind_Master” as a number. If not, your replication is broken and it needs to be fixed.
Proceed with caution
Stopping and starting the slave cannot cause any issue unless you havea very busy database. But, the delete statement, skipping and following up with a broken replication requires expert knowledge about MySQL organization and functioning.
If you are not sure how these commands will affect your database, we recommend you talk to a DB administrator.
Click here to consult our MySQL admins. We are online 24/7 and can attend your request within minutes.
How to fix MySQL restore errors
Restore errors usually take the form of:
ERROR 1062 (23000) at line XXXX: Duplicate entry ‘XXXXXX’ for key X”
When restoring database dumps, this error can happen due to 2 reasons:
- The SQL dump file has dulpicate entries.
- The index file is duplicate rows.
To find out what is exactly going wrong, we look at the conflicting rows and see if they have the same or different data.
If it’s the same data, then the issue could be due to duplicate index rows. If it is different data, the SQL dump file needs to be fixed.
How to fix duplicate entries in database dumps
This situation can happen when two or more tables are dumped into a single file without checking for duplicates.
To resolve this, one way we’ve used is to create a new primary key field with auto-increment and then change the queries to insert NULL value into it.
Then go ahead with the dump.
Once the new primary field table is fully populated, the name of the field is changed to the old primary table name to preserve the old queries.
The alter table command will look like this:
alter table table1 change column 'newprimary' 'oldprimary' varchar(255) not null;
If your index file is corrupted
There’s no easy way to fix an index file if there are duplicate entries in it.
You’ll have to delete the index file, and restore that file either from backups or from another server where your database dump is restored to a fresh DB server.
The steps involved are quite complex to list out here. We recommend that you consult a DB expert if you suspect the index file is corrupted.
Click here to talk to our MySQL administrators. We are online 24/7 and can help you within a few minutes.
Summary
MySQL error no 1062 can occur due to buggy web applications, corrupted dump files or replication issues. Today we’ve seen the various ways in which the cause of this error can be detected, and how it can be resolved.
MAKE YOUR SERVER ROCK SOLID!
Never again lose customers to poor page speed! Let us help you.
Sign up once. Enjoy peace of mind forever!
GET 24/7 EXPERT SERVER MANAGEMENT
var google_conversion_label = «owonCMyG5nEQ0aD71QM»;
So my MySQL database is behaving a little bit wierd. This is my table:
Name shares id price indvprc
cat 2 4 81 0
goog 4 4 20 20
fb 4 9 20 20
I’m getting this #1062 error when I try to insert into the table. So I looked into it further and realized that when I try to insert values into the table, in which the name and shares values are the same, it will return the #1062 error. For example, If i inserted:
fb 4 6 20 20
It would return an error. But if i changed the shares number to 6, it would run fine. Is it because of one of my columns that could be unique, or is it just something with mysql?
asked Jul 24, 2012 at 20:05
5
You need to remove shares
as your PRIMARY KEY
OR UNIQUE_KEY
answered Jul 24, 2012 at 20:12
mlishnmlishn
1,68514 silver badges19 bronze badges
1
- Make sure
PRIMARY KEY
was selectedAUTO_INCREMENT
. - Just enable Auto increment by :
ALTER TABLE [table name] AUTO_INCREMENT = 1
- When you execute the insert command you have to skip this key.
chw21
7,8751 gold badge15 silver badges30 bronze badges
answered Feb 4, 2016 at 2:34
Use SHOW CREATE TABLE your-table-name
to see what column is your primary key.
answered Jul 24, 2012 at 20:10
Majid FouladpourMajid Fouladpour
28.8k20 gold badges75 silver badges127 bronze badges
2
I solved it by changing the «lock» property from «shared» to «exclusive»:
ALTER TABLE `table`
CHANGE COLUMN `ID` `ID` INT(11) NOT NULL AUTO_INCREMENT COMMENT '' , LOCK = EXCLUSIVE;
davejal
5,91910 gold badges39 silver badges82 bronze badges
answered Dec 9, 2015 at 2:19
What is the exact error message? #1062 means duplicate entry violating a primary key constraint for a column — which boils down to the point that you cannot have two of the same values in the column. The error message should tell you which of your columns is constrained, I’m guessing «shares».
answered Jul 24, 2012 at 20:11
ChrisChris
3241 silver badge3 bronze badges
Probably this is not the best of solution but doing the following will solve the problem
Step 1: Take a database dump using the following command
mysqldump -u root -p databaseName > databaseName.db
find the line
ENGINE=InnoDB AUTO_INCREMENT="*****" DEFAULT CHARSET=utf8;
Step 2: Change *******
to max id of your mysql table id. Save this value.
Step 3: again use
mysql -u root -p databaseName < databaseName.db
In my case i got this error when i added a manual entry to use to enter data into some other table. some how we have to set the value AUTO_INCREMENT
to max id using mysql command
FastFarm
3991 gold badge5 silver badges21 bronze badges
answered Apr 15, 2013 at 10:15
KshitizKshitiz
2,6531 gold badge17 silver badges24 bronze badges
1
Repair the database by your domain provider cpanel.
Or see if you didnt merged something in the phpMyAdmin
answered Apr 14, 2017 at 20:03
The DB I was importing had a conflict during the import due to the presence of a column both autoincrement and primary key.
The problem was that in the .sql file the table was chopped into multiple «INSERT INTO» and during the import these queries were executed all together.
MY SOLUTION was to deselect the «Run multiple queries in each execution» on Navicat and it worked perfectly
answered Oct 30, 2020 at 9:01
ivorotoivoroto
86511 silver badges12 bronze badges
I had this error from mySQL using DataNucleus and a database created with UTF8 — the error was being caused by this annotation for a primary key:
@PrimaryKey
@Unique
@Persistent(valueStrategy = IdGeneratorStrategy.UUIDSTRING)
protected String id;
dropping the table and regenerating it with this fixed it.
@PrimaryKey
@Unique
@Persistent(valueStrategy = IdGeneratorStrategy.UUIDHEX)
protected String id;
answered Jun 3, 2017 at 19:50
bsautnerbsautner
4,29935 silver badges49 bronze badges
2
[Solved] How to solve MySQL error code: 1062 duplicate entry?
January 21, 2016 /
Error Message:
Error Code: 1062. Duplicate entry ‘%s’ for key %d
Example:
Error Code: 1062. Duplicate entry ‘1’ for key ‘PRIMARY’
Possible Reason:
Case 1: Duplicate value.
The data you are trying to insert is already present in the column primary key. The primary key column is unique and it will not accept the duplicate entry.
Case 2: Unique data field.
You are trying to add a column to an existing table which contains data and set it as unique.
Case 3: Data type –upper limit.
The auto_increment field reached its maximum range.
MySQL NUMERICAL DATA TYPE — STORAGE & RANGE |
Solution:
Case 1: Duplicate value.
Set the primary key column as AUTO_INCREMENT.
ALTER TABLE ‘table_name’ ADD ‘column_name’ INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
Now, when you are trying to insert values, ignore the primary key column. Also you can insert NULL value to primary key column to generate sequence number. If no value specified MySQL will assign sequence number automatically.
Case 2: Unique data field.
Create the new column without the assigning it as unique field, then insert the data and now set it as unique field now. It will work now!!!
Case 3: Data type-upper limit.
When the data type reached its upper limit, for example, if you were assigned your primary key column as TINYINT, once the last record is with the id 127, when you insert a new record the id should be 128. But 128 is out of range for TINYINT so MySQL reduce it inside the valid range and tries to insert it with the id 127, therefore it produces the duplicate key error.
In order to solve this, you can alter the index field, setting it into signed / unsigned INT/ BIGINT depending on the requirement, so that the maximum range will increase. You can do that by using the following command:
ALTER TABLE ‘table_name’ MODIFY ‘column_name’ INT UNSIGNED NOT NULL AUTO_INCREMENT;
You can use the following function to retrieve the most recently automatically generated AUTO_INCREMENT value:
mysql> SELECT LAST_INSERT_ID();
Final workaround:
After applying all the above mentioned solutions and still if you are facing this error code: 1062 Duplicate entry error, you can try the following workaround.
Step 1: Backup database:
You can backup your database by using following command:
mysqldump database_name > database_name.sql
Step 2: Drop and recreate database:
Drop the database using the following command:
DROP DATABASE database_name;
Create the database using the following command:
CREATE DATABASE database_name;
Step 3: Import database:
You can import your database by using following command:
mysql database_name < database_name.sql;
After applying this workaround, the duplicate entry error will be solved. I hope this post will help you to understand and solve the MySQL Error code: 1062. Duplicate entry error. If you still facing this issue, you can contact me through the contact me page. I can help you to solve this issue.
Содержание
- How to fix “error no 1062” in MySQL servers and clusters
- What is MySQL Error No: 1062?
- How to fix Error No 1062 when your web appilcation is broken
- Web app error solution
- How to fix MySQL replication Error Code : 1062
- How to delete the row
- How to skip the row
- Proceed with caution
- How to fix MySQL restore errors
- How to fix duplicate entries in database dumps
- If your index file is corrupted
- Summary
- MAKE YOUR SERVER ROCK SOLID!
- linux-notes.org
- Исправление Duplicate entry/Error_code: 1062 в MySQL репликации (Master-Slave)
- One thought on “ Duplicate entry/Error_code: 1062 в MySQL репликации (Master-Slave) ”
- Добавить комментарий Отменить ответ
- FPublisher
- Web-технологии: База знаний
- Документация MySQL
- Приложение B. Error Codes and Messages
How to fix “error no 1062” in MySQL servers and clusters
by Visakh S | May 25, 2018
Here at Bobcares, we provide Server Administration and Maintenance services to website owners and web solution providers.
An error we sometimes see in MySQL servers while updating, restoring or replicating databases is: “Error No: 1062” or “Error Code: 1062” or “ERROR 1062 (23000)“
A full error log that we recently saw in a MySQL cluster is:
could not execute Write_rows event on table mydatabasename.atable; Duplicate entry ’174465′ for key ‘PRIMARY’, Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event’s master log mysql-bin.000004, end_log_pos 60121977
What is MySQL Error No: 1062?
Simply put, error 1062 is displayed when MySQL finds a DUPLICATE of a row you are trying to insert.
We’ve seen primarily 4 reasons for this error:
- The web application has a bug that adds primary key by large increments, and exhausts the field limit.
- MySQL cluster replication tries to re-insert a field.
- A database dump file contains duplicate rows because of coding error.
- MySQL index table has duplicate rows.
In rare cases, this error is shown when the table becomes too big, but let’s not worry about that for now.
How to fix Error No 1062 when your web appilcation is broken
Every database driven application like WordPress, Drupal or OpenCart distinguishes one user or data set from another using something called a “primary field”.
This primary field should be unique for each user, post, etc.
Web apps use a code like this to insert data:
INSERT INTO table (‘id‘,’field1′,’field2′,’field3’) VALUES (‘NULL‘,’data1′,’data2′,’data3’);
Where “id” is the unique primar key, and is set to auto-increment (that is a number inserted will always be greater than the previous one so as to avoid duplicates).
This will work right if the value inserted is “NULL” and database table is set to “auto-increment”.
Some web apps make the mistake of passing the value as
where the first field is omitted. This will insert random numbers into the primary field, rapidly increasing the number to the maximum field limit (usually 2147483647 for numbers).
All subsequent queries will again try to over-write the field with “2147483647”, which MySQL interprets as a Duplicate.
Web app error solution
When we see a possible web application code error, the developers at our Website Support Services create a patch to the app file that fixes the database query.
Now, we have the non-sequential primary key table to be fixed.
For that, we create a new column (aka field), set it as auto-increment, and then make it the primary key.
The code looks approximately like this:
alter table table1 drop primary key;
alter table table1 add field2 int not null auto_increment primary key;
Once the primary key fields are filled with sequential values, the name of the new field can be changed to the old one, so that all web app queries will remain the same.
Warning : These commands can get very complex, very fast. So, if you are not sure how these commads work, it’s best to get expert assistance.
How to fix MySQL replication Error Code : 1062
Due to quirks in network or synching MySQL is sometimes known to try and write a row when it is already present in the slave.
So, when we see this error in a slave, we try either one of the following depending on many factors such as DB write traffic, time of day etc.
- Delete the row – This is the faster and safer way to continue if you know that the row being written is exactly the same as what’s already present.
- Skip the row – If you are not sure there’d be a data loss, you can try skipping the row.
How to delete the row
First delete the row using the primary key.
delete from table1 where field1 is key1;
Then stop and start the slave:
stop slave;
start slave;
select sleep(5);
Once it is done, check the slave status to see if replication is continuing.
show slave status;
If all is well, you’ll see “Seconds_Behind_Master” as a number. If not, your replication is broken and it needs to be fixed.
How to skip the row
For this, you can set the Skip counter to 1.
Here’s how it could look like:
stop slave;
set global SQL_SLAVE_SKIP_COUNTER = 1;
start slave;
select sleep(5);
Then check the slave status to see if replication is continuing.
show slave status;
Again, if all is well, you’ll see “Seconds_Behind_Master” as a number. If not, your replication is broken and it needs to be fixed.
Proceed with caution
Stopping and starting the slave cannot cause any issue unless you havea very busy database. But, the delete statement, skipping and following up with a broken replication requires expert knowledge about MySQL organization and functioning.
If you are not sure how these commands will affect your database, we recommend you talk to a DB administrator.
How to fix MySQL restore errors
Restore errors usually take the form of:
ERROR 1062 (23000) at line XXXX: Duplicate entry ‘XXXXXX’ for key X”
When restoring database dumps, this error can happen due to 2 reasons:
- The SQL dump file has dulpicate entries.
- The index file is duplicate rows.
To find out what is exactly going wrong, we look at the conflicting rows and see if they have the same or different data.
If it’s the same data, then the issue could be due to duplicate index rows. If it is different data, the SQL dump file needs to be fixed.
How to fix duplicate entries in database dumps
This situation can happen when two or more tables are dumped into a single file without checking for duplicates.
To resolve this, one way we’ve used is to create a new primary key field with auto-increment and then change the queries to insert NULL value into it.
Then go ahead with the dump.
Once the new primary field table is fully populated, the name of the field is changed to the old primary table name to preserve the old queries.
The alter table command will look like this:
alter table table1 change column ‘newprimary’ ‘oldprimary’ varchar(255) not null;
If your index file is corrupted
There’s no easy way to fix an index file if there are duplicate entries in it.
You’ll have to delete the index file, and restore that file either from backups or from another server where your database dump is restored to a fresh DB server.
The steps involved are quite complex to list out here. We recommend that you consult a DB expert if you suspect the index file is corrupted.
Summary
MySQL error no 1062 can occur due to buggy web applications, corrupted dump files or replication issues. Today we’ve seen the various ways in which the cause of this error can be detected, and how it can be resolved.
MAKE YOUR SERVER ROCK SOLID!
Never again lose customers to poor page speed! Let us help you.
Источник
linux-notes.org
Получил ошибку «Duplicate entry» или она еще называется «Error_code: 1062» в MySQL репликации (Master-Slave). И хочу рассказать, как ее можно исправить.
Чтобы проверить, работает ли SLAVE на сервере ( с репликацией Master-Slave), нужно выполнить команду, но для начала подключитесь к серверу MYSQL:
Ошибка выглядит вот так:
- 66.66.66.66 — ИП адрес Master-а
- Duplicate entry ‘14158493’ — Это дублирующиеся запись, ее нужно убрать.
Исправление Duplicate entry/Error_code: 1062 в MySQL репликации (Master-Slave)
Обычно репликация MySQL остановится всякий раз, когда возникает ошибка выполнения запроса на slave. Это происходит для того, чтобы мы могли идентифицировать проблему и устранить ее, и сохранить данные в соответствии с master-ом, который послал запрос. Вы можете пропустить такие ошибки (даже если это не рекомендуется) до тех пор, пока не найдете причину.
Для начала, остановим SLAVE:
И для исправления данной проблемы, имеется вот эта команда:
И собственно, проверяем и убеждаемся что все хорошо:
Видим что проблема решена!
Если вы уверены, что пропуск этой ошибки не приведет падению slave, то можно прописать в конфиг-файл mysql пропуск этих ошибок, а сделать это можно вот так:
И вставляем (если нет, то прописываем) данную переменную:
Как было показано в примере выше, я пропускаю ошибку 1062: _ Error: 1062 SQLSTATE: 23000 (ER_DUP_ENTRY) Message: Duplicate entry ‘%s’ for key %d_
Вы можете пропускать и другие типы ошибок:
Или можно пропускать все ошибки, но это крайне не рекомендуется делать! БУДЬТЕ ВНИМАТЕЛЬНЫ! А на этом, у меня все, статья «Duplicate entry/Error_code: 1062 в MySQL репликации (Master-Slave)» завершена.
One thought on “ Duplicate entry/Error_code: 1062 в MySQL репликации (Master-Slave) ”
SQL_SLAVE_SKIP_COUNTER=14158493;
это значит пропустит 14158493 запросов!
Так себе идея, обычно хватает SQL_SLAVE_SKIP_COUNTER=1;
Добавить комментарий Отменить ответ
Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.
Источник
FPublisher
Web-технологии: База знаний
Документация MySQL
Приложение B. Error Codes and Messages | |
---|---|
Пред. | След. |
Приложение B. Error Codes and Messages
This chapter lists the errors that may appear when you call MySQL from any host language. The first list displays server error messages. The second list displays client program messages.
Server error information comes from the following files:
The Error values and the symbols in parentheses correspond to definitions in the include/mysqld_error.h MySQL source file.
The SQLSTATE values correspond to definitions in the include/sql_state.h MySQL source file.
SQLSTATE error codes are displayed only if you use MySQL version 4.1 and up. SQLSTATE codes were added for compatibility with X/Open, ANSI, and ODBC behavior.
The Message values correspond to the error messages that are listed in the share/errmsg.txt file. %d and %s represent numbers and strings, respectively, that are substituted into the messages when they are displayed.
Because updates are frequent, it is possible that these files contain additional error information not listed here.
Ошибка: 1000 SQLSTATE: HY000 ( ER_HASHCHK )
Ошибка: 1001 SQLSTATE: HY000 ( ER_NISAMCHK )
Ошибка: 1002 SQLSTATE: HY000 ( ER_NO )
Ошибка: 1003 SQLSTATE: HY000 ( ER_YES )
Ошибка: 1004 SQLSTATE: HY000 ( ER_CANT_CREATE_FILE )
Сообщение: Невозможно создать файл ‘%s’ (ошибка: %d)
Ошибка: 1005 SQLSTATE: HY000 ( ER_CANT_CREATE_TABLE )
Сообщение: Невозможно создать таблицу ‘%s’ (ошибка: %d)
Ошибка: 1006 SQLSTATE: HY000 ( ER_CANT_CREATE_DB )
Сообщение: Невозможно создать базу данных ‘%s’ (ошибка: %d)
Ошибка: 1007 SQLSTATE: HY000 ( ER_DB_CREATE_EXISTS )
Сообщение: Невозможно создать базу данных ‘%s’. База данных уже существует
Ошибка: 1008 SQLSTATE: HY000 ( ER_DB_DROP_EXISTS )
Сообщение: Невозможно удалить базу данных ‘%s’. Такой базы данных нет
Ошибка: 1009 SQLSTATE: HY000 ( ER_DB_DROP_DELETE )
Сообщение: Ошибка при удалении базы данных (невозможно удалить ‘%s’, ошибка: %d)
Ошибка: 1010 SQLSTATE: HY000 ( ER_DB_DROP_RMDIR )
Сообщение: Невозможно удалить базу данных (невозможно удалить каталог ‘%s’, ошибка: %d)
Ошибка: 1011 SQLSTATE: HY000 ( ER_CANT_DELETE_FILE )
Сообщение: Ошибка при удалении ‘%s’ (ошибка: %d)
Ошибка: 1012 SQLSTATE: HY000 ( ER_CANT_FIND_SYSTEM_REC )
Сообщение: Невозможно прочитать запись в системной таблице
Ошибка: 1013 SQLSTATE: HY000 ( ER_CANT_GET_STAT )
Сообщение: Невозможно получить статусную информацию о ‘%s’ (ошибка: %d)
Ошибка: 1014 SQLSTATE: HY000 ( ER_CANT_GET_WD )
Сообщение: Невозможно определить рабочий каталог (ошибка: %d)
Ошибка: 1015 SQLSTATE: HY000 ( ER_CANT_LOCK )
Сообщение: Невозможно поставить блокировку на файле (ошибка: %d)
Ошибка: 1016 SQLSTATE: HY000 ( ER_CANT_OPEN_FILE )
Сообщение: Невозможно открыть файл: ‘%s’ (ошибка: %d)
Ошибка: 1017 SQLSTATE: HY000 ( ER_FILE_NOT_FOUND )
Сообщение: Невозможно найти файл: ‘%s’ (ошибка: %d)
Ошибка: 1018 SQLSTATE: HY000 ( ER_CANT_READ_DIR )
Сообщение: Невозможно прочитать каталог ‘%s’ (ошибка: %d)
Ошибка: 1019 SQLSTATE: HY000 ( ER_CANT_SET_WD )
Сообщение: Невозможно перейти в каталог ‘%s’ (ошибка: %d)
Ошибка: 1020 SQLSTATE: HY000 ( ER_CHECKREAD )
Сообщение: Запись изменилась с момента последней выборки в таблице ‘%s’
Ошибка: 1021 SQLSTATE: HY000 ( ER_DISK_FULL )
Сообщение: Диск заполнен. (%s). Ожидаем, пока кто-то не уберет после себя мусор.
Ошибка: 1022 SQLSTATE: 23000 ( ER_DUP_KEY )
Сообщение: Невозможно произвести запись, дублирующийся ключ в таблице ‘%s’
Ошибка: 1023 SQLSTATE: HY000 ( ER_ERROR_ON_CLOSE )
Сообщение: Ошибка при закрытии ‘%s’ (ошибка: %d)
Ошибка: 1024 SQLSTATE: HY000 ( ER_ERROR_ON_READ )
Сообщение: Ошибка чтения файла ‘%s’ (ошибка: %d)
Ошибка: 1025 SQLSTATE: HY000 ( ER_ERROR_ON_RENAME )
Сообщение: Ошибка при переименовании ‘%s’ в ‘%s’ (ошибка: %d)
Ошибка: 1026 SQLSTATE: HY000 ( ER_ERROR_ON_WRITE )
Сообщение: Ошибка записи в файл ‘%s’ (ошибка: %d)
Ошибка: 1027 SQLSTATE: HY000 ( ER_FILE_USED )
Сообщение: ‘%s’ заблокирован для изменений
Ошибка: 1028 SQLSTATE: HY000 ( ER_FILSORT_ABORT )
Сообщение: Сортировка прервана
Ошибка: 1029 SQLSTATE: HY000 ( ER_FORM_NOT_FOUND )
Сообщение: Представление ‘%s’ не существует для ‘%s’
Ошибка: 1030 SQLSTATE: HY000 ( ER_GET_ERRNO )
Сообщение: Получена ошибка %d от обработчика таблиц
Ошибка: 1031 SQLSTATE: HY000 ( ER_ILLEGAL_HA )
Сообщение: Обработчик таблицы ‘%s’ не поддерживает эту возможность
Ошибка: 1032 SQLSTATE: HY000 ( ER_KEY_NOT_FOUND )
Сообщение: Невозможно найти запись в ‘%s’
Ошибка: 1033 SQLSTATE: HY000 ( ER_NOT_FORM_FILE )
Сообщение: Некорректная информация в файле ‘%s’
Ошибка: 1034 SQLSTATE: HY000 ( ER_NOT_KEYFILE )
Сообщение: Некорректный индексный файл для таблицы: ‘%s’. Попробуйте восстановить его
Ошибка: 1035 SQLSTATE: HY000 ( ER_OLD_KEYFILE )
Сообщение: Старый индексный файл для таблицы ‘%s’; отремонтируйте его!
Ошибка: 1036 SQLSTATE: HY000 ( ER_OPEN_AS_READONLY )
Сообщение: Таблица ‘%s’ предназначена только для чтения
Ошибка: 1037 SQLSTATE: HY001 ( ER_OUTOFMEMORY )
Сообщение: Недостаточно памяти. Перезапустите сервер и попробуйте еще раз (нужно %d байт)
Ошибка: 1038 SQLSTATE: HY001 ( ER_OUT_OF_SORTMEMORY )
Сообщение: Недостаточно памяти для сортировки. Увеличьте размер буфера сортировки на сервере
Ошибка: 1039 SQLSTATE: HY000 ( ER_UNEXPECTED_EOF )
Сообщение: Неожиданный конец файла ‘%s’ (ошибка: %d)
Ошибка: 1040 SQLSTATE: 08004 ( ER_CON_COUNT_ERROR )
Сообщение: Слишком много соединений
Ошибка: 1041 SQLSTATE: HY000 ( ER_OUT_OF_RESOURCES )
Сообщение: Недостаточно памяти; удостоверьтесь, что mysqld или какой-либо другой процесс не занимает всю доступную память. Если нет, то вы можете использовать ulimit, чтобы выделить для mysqld больше памяти, или увеличить объем файла подкачки
Ошибка: 1042 SQLSTATE: 08S01 ( ER_BAD_HOST_ERROR )
Сообщение: Невозможно получить имя хоста для вашего адреса
Ошибка: 1043 SQLSTATE: 08S01 ( ER_HANDSHAKE_ERROR )
Сообщение: Некорректное приветствие
Ошибка: 1044 SQLSTATE: 42000 ( ER_DBACCESS_DENIED_ERROR )
Сообщение: Для пользователя ‘%s’@’%s’ доступ к базе данных ‘%s’ закрыт
Ошибка: 1045 SQLSTATE: 28000 ( ER_ACCESS_DENIED_ERROR )
Сообщение: Доступ закрыт для пользователя ‘%s’@’%s’ (был использован пароль: %s)
Ошибка: 1046 SQLSTATE: 3D000 ( ER_NO_DB_ERROR )
Сообщение: База данных не выбрана
Ошибка: 1047 SQLSTATE: 08S01 ( ER_UNKNOWN_COM_ERROR )
Сообщение: Неизвестная команда коммуникационного протокола
Ошибка: 1048 SQLSTATE: 23000 ( ER_BAD_NULL_ERROR )
Сообщение: Столбец ‘%s’ не может принимать величину NULL
Ошибка: 1049 SQLSTATE: 42000 ( ER_BAD_DB_ERROR )
Сообщение: Неизвестная база данных ‘%s’
Ошибка: 1050 SQLSTATE: 42S01 ( ER_TABLE_EXISTS_ERROR )
Сообщение: Таблица ‘%s’ уже существует
Ошибка: 1051 SQLSTATE: 42S02 ( ER_BAD_TABLE_ERROR )
Сообщение: Неизвестная таблица ‘%s’
Ошибка: 1052 SQLSTATE: 23000 ( ER_NON_UNIQ_ERROR )
Сообщение: Столбец ‘%s’ в %s задан неоднозначно
Ошибка: 1053 SQLSTATE: 08S01 ( ER_SERVER_SHUTDOWN )
Сообщение: Сервер находится в процессе остановки
Ошибка: 1054 SQLSTATE: 42S22 ( ER_BAD_FIELD_ERROR )
Сообщение: Неизвестный столбец ‘%s’ в ‘%s’
Ошибка: 1055 SQLSTATE: 42000 ( ER_WRONG_FIELD_WITH_GROUP )
Сообщение: ‘%s’ не присутствует в GROUP BY
Ошибка: 1056 SQLSTATE: 42000 ( ER_WRONG_GROUP_FIELD )
Сообщение: Невозможно произвести группировку по ‘%s’
Ошибка: 1057 SQLSTATE: 42000 ( ER_WRONG_SUM_SELECT )
Сообщение: Выражение содержит групповые функции и столбцы, но не включает GROUP BY. А как вы умудрились получить это сообщение об ошибке?
Ошибка: 1058 SQLSTATE: 21S01 ( ER_WRONG_VALUE_COUNT )
Сообщение: Количество столбцов не совпадает с количеством значений
Ошибка: 1059 SQLSTATE: 42000 ( ER_TOO_LONG_IDENT )
Сообщение: Слишком длинный идентификатор ‘%s’
Ошибка: 1060 SQLSTATE: 42S21 ( ER_DUP_FIELDNAME )
Сообщение: Дублирующееся имя столбца ‘%s’
Ошибка: 1061 SQLSTATE: 42000 ( ER_DUP_KEYNAME )
Сообщение: Дублирующееся имя ключа ‘%s’
Ошибка: 1062 SQLSTATE: 23000 ( ER_DUP_ENTRY )
Сообщение: Дублирующаяся запись ‘%s’ по ключу %d
Ошибка: 1063 SQLSTATE: 42000 ( ER_WRONG_FIELD_SPEC )
Сообщение: Некорректный определитель столбца для столбца ‘%s’
Ошибка: 1064 SQLSTATE: 42000 ( ER_PARSE_ERROR )
Сообщение: %s около ‘%s’ на строке %d
Ошибка: 1065 SQLSTATE: HY000 ( ER_EMPTY_QUERY )
Сообщение: Запрос оказался пустым
Ошибка: 1066 SQLSTATE: 42000 ( ER_NONUNIQ_TABLE )
Сообщение: Повторяющаяся таблица/псевдоним ‘%s’
Ошибка: 1067 SQLSTATE: 42000 ( ER_INVALID_DEFAULT )
Сообщение: Некорректное значение по умолчанию для ‘%s’
Ошибка: 1068 SQLSTATE: 42000 ( ER_MULTIPLE_PRI_KEY )
Сообщение: Указано несколько первичных ключей
Ошибка: 1069 SQLSTATE: 42000 ( ER_TOO_MANY_KEYS )
Сообщение: Указано слишком много ключей. Разрешается указывать не более %d ключей
Ошибка: 1070 SQLSTATE: 42000 ( ER_TOO_MANY_KEY_PARTS )
Сообщение: Указано слишком много частей составного ключа. Разрешается указывать не более %d частей
Ошибка: 1071 SQLSTATE: 42000 ( ER_TOO_LONG_KEY )
Сообщение: Указан слишком длинный ключ. Максимальная длина ключа составляет %d байт
Ошибка: 1072 SQLSTATE: 42000 ( ER_KEY_COLUMN_DOES_NOT_EXITS )
Сообщение: Ключевой столбец ‘%s’ в таблице не существует
Ошибка: 1073 SQLSTATE: 42000 ( ER_BLOB_USED_AS_KEY )
Сообщение: Столбец типа BLOB ‘%s’ не может быть использован как значение ключа в таблице такого типа
Ошибка: 1074 SQLSTATE: 42000 ( ER_TOO_BIG_FIELDLENGTH )
Сообщение: Слишком большая длина столбца ‘%s’ (максимум = %d). Используйте тип BLOB вместо текущего
Ошибка: 1075 SQLSTATE: 42000 ( ER_WRONG_AUTO_KEY )
Сообщение: Некорректное определение таблицы: может существовать только один автоинкрементный столбец, и он должен быть определен как ключ
Ошибка: 1076 SQLSTATE: HY000 ( ER_READY )
Сообщение: %s: Готов принимать соединения. Версия: ‘%s’ сокет: ‘%s’ порт: %d
Ошибка: 1077 SQLSTATE: HY000 ( ER_NORMAL_SHUTDOWN )
Сообщение: %s: Корректная остановка
Ошибка: 1078 SQLSTATE: HY000 ( ER_GOT_SIGNAL )
Сообщение: %s: Получен сигнал %d. Прекращаем!
Ошибка: 1079 SQLSTATE: HY000 ( ER_SHUTDOWN_COMPLETE )
Сообщение: %s: Остановка завершена
Ошибка: 1080 SQLSTATE: 08S01 ( ER_FORCING_CLOSE )
Сообщение: %s: Принудительно закрываем поток %ld пользователя: ‘%s’
Ошибка: 1081 SQLSTATE: 08S01 ( ER_IPSOCK_ERROR )
Сообщение: Невозможно создать IP-сокет
Ошибка: 1082 SQLSTATE: 42S12 ( ER_NO_SUCH_INDEX )
Сообщение: В таблице ‘%s’ нет такого индекса, как в CREATE INDEX. Создайте таблицу заново
Ошибка: 1083 SQLSTATE: 42000 ( ER_WRONG_FIELD_TERMINATORS )
Сообщение: Аргумент разделителя полей — не тот, который ожидался. Обращайтесь к документации
Ошибка: 1084 SQLSTATE: 42000 ( ER_BLOBS_AND_NO_TERMINATED )
Сообщение: Фиксированный размер записи с полями типа BLOB использовать нельзя, применяйте ‘fields terminated by’
Ошибка: 1085 SQLSTATE: HY000 ( ER_TEXTFILE_NOT_READABLE )
Сообщение: Файл ‘%s’ должен находиться в том же каталоге, что и база данных, или быть общедоступным для чтения
Ошибка: 1086 SQLSTATE: HY000 ( ER_FILE_EXISTS_ERROR )
Сообщение: Файл ‘%s’ уже существует
Ошибка: 1087 SQLSTATE: HY000 ( ER_LOAD_INFO )
Сообщение: Записей: %ld Удалено: %ld Пропущено: %ld Предупреждений: %ld
Ошибка: 1088 SQLSTATE: HY000 ( ER_ALTER_INFO )
Сообщение: Записей: %ld Дубликатов: %ld
Ошибка: 1089 SQLSTATE: HY000 ( ER_WRONG_SUB_KEY )
Сообщение: Некорректная часть ключа. Используемая часть ключа не является строкой, указанная длина больше, чем длина части ключа, или обработчик таблицы не поддерживает уникальные части ключа
Ошибка: 1090 SQLSTATE: 42000 ( ER_CANT_REMOVE_ALL_FIELDS )
Сообщение: Нельзя удалить все столбцы с помощью ALTER TABLE. Используйте DROP TABLE
Ошибка: 1091 SQLSTATE: 42000 ( ER_CANT_DROP_FIELD_OR_KEY )
Сообщение: Невозможно удалить (DROP) ‘%s’. Убедитесь что столбец/ключ действительно существует
Ошибка: 1092 SQLSTATE: HY000 ( ER_INSERT_INFO )
Сообщение: Записей: %ld Дубликатов: %ld Предупреждений: %ld
Ошибка: 1093 SQLSTATE: HY000 ( ER_UPDATE_TABLE_USED )
Сообщение: Не допускается указание таблицы ‘%s’ в списке таблиц FROM для внесения в нее изменений
Ошибка: 1094 SQLSTATE: HY000 ( ER_NO_SUCH_THREAD )
Сообщение: Неизвестный номер потока: %lu
Ошибка: 1095 SQLSTATE: HY000 ( ER_KILL_DENIED_ERROR )
Сообщение: Вы не являетесь владельцем потока %lu
Ошибка: 1096 SQLSTATE: HY000 ( ER_NO_TABLES_USED )
Сообщение: Никакие таблицы не использованы
Ошибка: 1097 SQLSTATE: HY000 ( ER_TOO_BIG_SET )
Сообщение: Слишком много значений для столбца %s в SET
Ошибка: 1098 SQLSTATE: HY000 ( ER_NO_UNIQUE_LOGFILE )
Сообщение: Невозможно создать уникальное имя файла журнала %s.(1-999)
Ошибка: 1099 SQLSTATE: HY000 ( ER_TABLE_NOT_LOCKED_FOR_WRITE )
Сообщение: Таблица ‘%s’ заблокирована уровнем READ lock и не может быть изменена
Ошибка: 1100 SQLSTATE: HY000 ( ER_TABLE_NOT_LOCKED )
Сообщение: Таблица ‘%s’ не была заблокирована с помощью LOCK TABLES
Ошибка: 1101 SQLSTATE: 42000 ( ER_BLOB_CANT_HAVE_DEFAULT )
Сообщение: Невозможно указывать значение по умолчанию для столбца BLOB ‘%s’
Ошибка: 1102 SQLSTATE: 42000 ( ER_WRONG_DB_NAME )
Сообщение: Некорректное имя базы данных ‘%s’
Ошибка: 1103 SQLSTATE: 42000 ( ER_WRONG_TABLE_NAME )
Сообщение: Некорректное имя таблицы ‘%s’
Ошибка: 1104 SQLSTATE: 42000 ( ER_TOO_BIG_SELECT )
Сообщение: Для такой выборки SELECT должен будет просмотреть слишком много записей и, видимо, это займет очень много времени. Проверьте ваше указание WHERE, и, если в нем все в порядке, укажите SET SQL_BIG_SELECTS=1
Ошибка: 1105 SQLSTATE: HY000 ( ER_UNKNOWN_ERROR )
Сообщение: Неизвестная ошибка
Ошибка: 1106 SQLSTATE: 42000 ( ER_UNKNOWN_PROCEDURE )
Сообщение: Неизвестная процедура ‘%s’
Ошибка: 1107 SQLSTATE: 42000 ( ER_WRONG_PARAMCOUNT_TO_PROCEDURE )
Сообщение: Некорректное количество параметров для процедуры ‘%s’
Ошибка: 1108 SQLSTATE: HY000 ( ER_WRONG_PARAMETERS_TO_PROCEDURE )
Сообщение: Некорректные параметры для процедуры ‘%s’
Ошибка: 1109 SQLSTATE: 42S02 ( ER_UNKNOWN_TABLE )
Сообщение: Неизвестная таблица ‘%s’ в %s
Ошибка: 1110 SQLSTATE: 42000 ( ER_FIELD_SPECIFIED_TWICE )
Сообщение: Столбец ‘%s’ указан дважды
Ошибка: 1111 SQLSTATE: HY000 ( ER_INVALID_GROUP_FUNC_USE )
Сообщение: Неправильное использование групповых функций
Ошибка: 1112 SQLSTATE: 42000 ( ER_UNSUPPORTED_EXTENSION )
Сообщение: В таблице ‘%s’ используются возможности, не поддерживаемые в этой версии MySQL
Ошибка: 1113 SQLSTATE: 42000 ( ER_TABLE_MUST_HAVE_COLUMNS )
Сообщение: В таблице должен быть как минимум один столбец
Ошибка: 1114 SQLSTATE: HY000 ( ER_RECORD_FILE_FULL )
Сообщение: Таблица ‘%s’ переполнена
Ошибка: 1115 SQLSTATE: 42000 ( ER_UNKNOWN_CHARACTER_SET )
Сообщение: Неизвестная кодировка ‘%s’
Ошибка: 1116 SQLSTATE: HY000 ( ER_TOO_MANY_TABLES )
Сообщение: Слишком много таблиц. MySQL может использовать только %d таблиц в соединении
Ошибка: 1117 SQLSTATE: HY000 ( ER_TOO_MANY_FIELDS )
Сообщение: Слишком много столбцов
Ошибка: 1118 SQLSTATE: 42000 ( ER_TOO_BIG_ROWSIZE )
Сообщение: Слишком большой размер записи. Максимальный размер строки, исключая поля BLOB, — %d. Возможно, вам следует изменить тип некоторых полей на BLOB
Ошибка: 1119 SQLSTATE: HY000 ( ER_STACK_OVERRUN )
Сообщение: Стек потоков переполнен: использовано: %ld из %ld стека. Применяйте ‘mysqld -O thread_stack=#’ для указания большего размера стека, если необходимо
Ошибка: 1120 SQLSTATE: 42000 ( ER_WRONG_OUTER_JOIN )
Сообщение: В OUTER JOIN обнаружена перекрестная зависимость. Внимательно проанализируйте свои условия ON
Ошибка: 1121 SQLSTATE: 42000 ( ER_NULL_COLUMN_IN_INDEX )
Сообщение: Столбец ‘%s’ используется в UNIQUE или в INDEX, но не определен как NOT NULL
Ошибка: 1122 SQLSTATE: HY000 ( ER_CANT_FIND_UDF )
Сообщение: Невозможно загрузить функцию ‘%s’
Ошибка: 1123 SQLSTATE: HY000 ( ER_CANT_INITIALIZE_UDF )
Сообщение: Невозможно инициализировать функцию ‘%s’; %s
Ошибка: 1124 SQLSTATE: HY000 ( ER_UDF_NO_PATHS )
Сообщение: Недопустимо указывать пути для динамических библиотек
Ошибка: 1125 SQLSTATE: HY000 ( ER_UDF_EXISTS )
Сообщение: Функция ‘%s’ уже существует
Ошибка: 1126 SQLSTATE: HY000 ( ER_CANT_OPEN_LIBRARY )
Сообщение: Невозможно открыть динамическую библиотеку ‘%s’ (ошибка: %d %s)
Ошибка: 1127 SQLSTATE: HY000 ( ER_CANT_FIND_DL_ENTRY )
Сообщение: Невозможно отыскать функцию ‘%s’ в библиотеке
Ошибка: 1128 SQLSTATE: HY000 ( ER_FUNCTION_NOT_DEFINED )
Сообщение: Функция ‘%s’ не определена
Ошибка: 1129 SQLSTATE: HY000 ( ER_HOST_IS_BLOCKED )
Сообщение: Хост ‘%s’ заблокирован из-за слишком большого количества ошибок соединения. Разблокировать его можно с помощью ‘mysqladmin flush-hosts’
Ошибка: 1130 SQLSTATE: HY000 ( ER_HOST_NOT_PRIVILEGED )
Сообщение: Хосту ‘%s’ не разрешается подключаться к этому серверу MySQL
Ошибка: 1131 SQLSTATE: 42000 ( ER_PASSWORD_ANONYMOUS_USER )
Сообщение: Вы используете MySQL от имени анонимного пользователя, а анонимным пользователям не разрешается менять пароли
Ошибка: 1132 SQLSTATE: 42000 ( ER_PASSWORD_NOT_ALLOWED )
Сообщение: Для того чтобы изменять пароли других пользователей, у вас должны быть привилегии на изменение таблиц в базе данных mysql
Ошибка: 1133 SQLSTATE: 42000 ( ER_PASSWORD_NO_MATCH )
Сообщение: Невозможно отыскать подходящую запись в таблице пользователей
Ошибка: 1134 SQLSTATE: HY000 ( ER_UPDATE_INFO )
Сообщение: Совпало записей: %ld Изменено: %ld Предупреждений: %ld
Ошибка: 1135 SQLSTATE: HY000 ( ER_CANT_CREATE_THREAD )
Сообщение: Невозможно создать новый поток (ошибка %d). Если это не ситуация, связанная с нехваткой памяти, то вам следует изучить документацию на предмет описания возможной ошибки работы в конкретной ОС
Ошибка: 1136 SQLSTATE: 21S01 ( ER_WRONG_VALUE_COUNT_ON_ROW )
Сообщение: Количество столбцов не совпадает с количеством значений в записи %ld
Ошибка: 1137 SQLSTATE: HY000 ( ER_CANT_REOPEN_TABLE )
Сообщение: Невозможно заново открыть таблицу ‘%s’
Ошибка: 1138 SQLSTATE: 42000 ( ER_INVALID_USE_OF_NULL )
Сообщение: Неправильное использование величины NULL
Ошибка: 1139 SQLSTATE: 42000 ( ER_REGEXP_ERROR )
Сообщение: Получена ошибка ‘%s’ от регулярного выражения
Ошибка: 1140 SQLSTATE: 42000 ( ER_MIX_OF_GROUP_FUNC_AND_FIELDS )
Сообщение: Одновременное использование сгруппированных (GROUP) столбцов (MIN(),MAX(),COUNT(). ) с несгруппированными столбцами является некорректным, если в выражении есть GROUP BY
Ошибка: 1141 SQLSTATE: 42000 ( ER_NONEXISTING_GRANT )
Сообщение: Такие права не определены для пользователя ‘%s’ на хосте ‘%s’
Ошибка: 1142 SQLSTATE: 42000 ( ER_TABLEACCESS_DENIED_ERROR )
Сообщение: Команда %s запрещена пользователю ‘%s’@’%s’ для таблицы ‘%s’
Ошибка: 1143 SQLSTATE: 42000 ( ER_COLUMNACCESS_DENIED_ERROR )
Сообщение: Команда %s запрещена пользователю ‘%s’@’%s’ для столбца ‘%s’ в таблице ‘%s’
Ошибка: 1144 SQLSTATE: 42000 ( ER_ILLEGAL_GRANT_FOR_TABLE )
Сообщение: Неверная команда GRANT или REVOKE. Обратитесь к документации, чтобы выяснить, какие привилегии можно использовать
Ошибка: 1145 SQLSTATE: 42000 ( ER_GRANT_WRONG_HOST_OR_USER )
Сообщение: Слишком длинное имя пользователя/хоста для GRANT
Ошибка: 1146 SQLSTATE: 42S02 ( ER_NO_SUCH_TABLE )
Сообщение: Таблица ‘%s.%s’ не существует
Ошибка: 1147 SQLSTATE: 42000 ( ER_NONEXISTING_TABLE_GRANT )
Сообщение: Такие права не определены для пользователя ‘%s’ на компьютере ‘%s’ для таблицы ‘%s’
Ошибка: 1148 SQLSTATE: 42000 ( ER_NOT_ALLOWED_COMMAND )
Сообщение: Эта команда не допускается в данной версии MySQL
Ошибка: 1149 SQLSTATE: 42000 ( ER_SYNTAX_ERROR )
Сообщение: У вас ошибка в запросе. Изучите документацию по используемой версии MySQL на предмет корректного синтаксиса
Ошибка: 1150 SQLSTATE: HY000 ( ER_DELAYED_CANT_CHANGE_LOCK )
Сообщение: Поток, обслуживающий отложенную вставку (delayed insert), не смог получить запрашиваемую блокировку на таблицу %s
Ошибка: 1151 SQLSTATE: HY000 ( ER_TOO_MANY_DELAYED_THREADS )
Сообщение: Слишком много потоков, обслуживающих отложенную вставку (delayed insert)
Ошибка: 1152 SQLSTATE: 08S01 ( ER_ABORTING_CONNECTION )
Сообщение: Прервано соединение %ld к базе данных ‘%s’ пользователя ‘%s’ (%s)
Ошибка: 1153 SQLSTATE: 08S01 ( ER_NET_PACKET_TOO_LARGE )
Сообщение: Полученный пакет больше, чем ‘max_allowed_packet’
Ошибка: 1154 SQLSTATE: 08S01 ( ER_NET_READ_ERROR_FROM_PIPE )
Сообщение: Получена ошибка чтения от потока соединения (connection pipe)
Ошибка: 1155 SQLSTATE: 08S01 ( ER_NET_FCNTL_ERROR )
Сообщение: Получена ошибка от fcntl()
Ошибка: 1156 SQLSTATE: 08S01 ( ER_NET_PACKETS_OUT_OF_ORDER )
Сообщение: Пакеты получены в неверном порядке
Ошибка: 1157 SQLSTATE: 08S01 ( ER_NET_UNCOMPRESS_ERROR )
Сообщение: Невозможно распаковать пакет, полученный через коммуникационный протокол
Ошибка: 1158 SQLSTATE: 08S01 ( ER_NET_READ_ERROR )
Сообщение: Получена ошибка в процессе получения пакета через коммуникационный протокол
Ошибка: 1159 SQLSTATE: 08S01 ( ER_NET_READ_INTERRUPTED )
Сообщение: Получен таймаут ожидания пакета через коммуникационный протокол
Ошибка: 1160 SQLSTATE: 08S01 ( ER_NET_ERROR_ON_WRITE )
Сообщение: Получена ошибка при передаче пакета через коммуникационный протокол
Ошибка: 1161 SQLSTATE: 08S01 ( ER_NET_WRITE_INTERRUPTED )
Сообщение: Получен таймаут в процессе передачи пакета через коммуникационный протокол
Ошибка: 1162 SQLSTATE: 42000 ( ER_TOO_LONG_STRING )
Сообщение: Результирующая строка больше, чем ‘max_allowed_packet’
Ошибка: 1163 SQLSTATE: 42000 ( ER_TABLE_CANT_HANDLE_BLOB )
Сообщение: Используемая таблица не поддерживает типы BLOB/TEXT
Ошибка: 1164 SQLSTATE: 42000 ( ER_TABLE_CANT_HANDLE_AUTO_INCREMENT )
Сообщение: Используемая таблица не поддерживает автоинкрементные столбцы
Ошибка: 1165 SQLSTATE: HY000 ( ER_DELAYED_INSERT_TABLE_LOCKED )
Сообщение: Нельзя использовать INSERT DELAYED для таблицы ‘%s’, потому что она заблокирована с помощью LOCK TABLES
Ошибка: 1166 SQLSTATE: 42000 ( ER_WRONG_COLUMN_NAME )
Сообщение: Неверное имя столбца ‘%s’
Ошибка: 1167 SQLSTATE: 42000 ( ER_WRONG_KEY_COLUMN )
Сообщение: Использованный обработчик таблицы не может проиндексировать столбец ‘%s’
Ошибка: 1168 SQLSTATE: HY000 ( ER_WRONG_MRG_TABLE )
Сообщение: Не все таблицы в MERGE определены одинаково
Ошибка: 1169 SQLSTATE: 23000 ( ER_DUP_UNIQUE )
Сообщение: Невозможно записать в таблицу ‘%s’ из-за ограничений уникального ключа
Ошибка: 1170 SQLSTATE: 42000 ( ER_BLOB_KEY_WITHOUT_LENGTH )
Сообщение: Столбец типа BLOB ‘%s’ был указан в определении ключа без указания длины ключа
Ошибка: 1171 SQLSTATE: 42000 ( ER_PRIMARY_CANT_HAVE_NULL )
Сообщение: Все части первичного ключа (PRIMARY KEY) должны быть определены как NOT NULL; Если вам нужна поддержка величин NULL в ключе, воспользуйтесь индексом UNIQUE
Ошибка: 1172 SQLSTATE: 42000 ( ER_TOO_MANY_ROWS )
Сообщение: В результате возвращена более чем одна строка
Ошибка: 1173 SQLSTATE: 42000 ( ER_REQUIRES_PRIMARY_KEY )
Сообщение: Этот тип таблицы требует определения первичного ключа
Ошибка: 1174 SQLSTATE: HY000 ( ER_NO_RAID_COMPILED )
Сообщение: Эта версия MySQL скомпилирована без поддержки RAID
Ошибка: 1175 SQLSTATE: HY000 ( ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE )
Сообщение: Вы работаете в режиме безопасных обновлений (safe update mode) и попробовали изменить таблицу без использования ключевого столбца в части WHERE
Ошибка: 1176 SQLSTATE: HY000 ( ER_KEY_DOES_NOT_EXITS )
Сообщение: Ключ ‘%s’ не существует в таблице ‘%s’
Ошибка: 1177 SQLSTATE: 42000 ( ER_CHECK_NO_SUCH_TABLE )
Сообщение: Невозможно открыть таблицу
Ошибка: 1178 SQLSTATE: 42000 ( ER_CHECK_NOT_IMPLEMENTED )
Сообщение: Обработчик таблицы не поддерживает этого: %s
Ошибка: 1179 SQLSTATE: 25000 ( ER_CANT_DO_THIS_DURING_AN_TRANSACTION )
Сообщение: Вам не разрешено выполнять эту команду в транзакции
Ошибка: 1180 SQLSTATE: HY000 ( ER_ERROR_DURING_COMMIT )
Сообщение: Получена ошибка %d в процессе COMMIT
Ошибка: 1181 SQLSTATE: HY000 ( ER_ERROR_DURING_ROLLBACK )
Сообщение: Получена ошибка %d в процессе ROLLBACK
Ошибка: 1182 SQLSTATE: HY000 ( ER_ERROR_DURING_FLUSH_LOGS )
Сообщение: Получена ошибка %d в процессе FLUSH_LOGS
Ошибка: 1183 SQLSTATE: HY000 ( ER_ERROR_DURING_CHECKPOINT )
Сообщение: Получена ошибка %d в процессе CHECKPOINT
Ошибка: 1184 SQLSTATE: 08S01 ( ER_NEW_ABORTING_CONNECTION )
Сообщение: Прервано соединение %ld к базе данных ‘%s’ пользователя ‘%s’ с хоста `%s’ (%s)
Ошибка: 1185 SQLSTATE: HY000 ( ER_DUMP_NOT_IMPLEMENTED )
Сообщение: Обработчик этой таблицы не поддерживает двоичного сохранения образа таблицы (dump)
Ошибка: 1186 SQLSTATE: HY000 ( ER_FLUSH_MASTER_BINLOG_CLOSED )
Сообщение: Двоичный журнал обновления закрыт, невозможно выполнить RESET MASTER
Ошибка: 1187 SQLSTATE: HY000 ( ER_INDEX_REBUILD )
Сообщение: Ошибка перестройки индекса сохраненной таблицы ‘%s’
Ошибка: 1188 SQLSTATE: HY000 ( ER_MASTER )
Сообщение: Ошибка от головного сервера: ‘%s’
Ошибка: 1189 SQLSTATE: 08S01 ( ER_MASTER_NET_READ )
Сообщение: Возникла ошибка чтения в процессе коммуникации с головным сервером
Ошибка: 1190 SQLSTATE: 08S01 ( ER_MASTER_NET_WRITE )
Сообщение: Возникла ошибка записи в процессе коммуникации с головным сервером
Ошибка: 1191 SQLSTATE: HY000 ( ER_FT_MATCHING_KEY_NOT_FOUND )
Сообщение: Невозможно отыскать полнотекстовый (FULLTEXT) индекс, соответствующий списку столбцов
Ошибка: 1192 SQLSTATE: HY000 ( ER_LOCK_OR_ACTIVE_TRANSACTION )
Сообщение: Невозможно выполнить указанную команду, поскольку у вас присутствуют активно заблокированные таблица или открытая транзакция
Ошибка: 1193 SQLSTATE: HY000 ( ER_UNKNOWN_SYSTEM_VARIABLE )
Сообщение: Неизвестная системная переменная ‘%s’
Ошибка: 1194 SQLSTATE: HY000 ( ER_CRASHED_ON_USAGE )
Сообщение: Таблица ‘%s’ помечена как испорченная и должна пройти проверку и ремонт
Ошибка: 1195 SQLSTATE: HY000 ( ER_CRASHED_ON_REPAIR )
Сообщение: Таблица ‘%s’ помечена как испорченная и последний (автоматический?) ремонт не был успешным
Ошибка: 1196 SQLSTATE: HY000 ( ER_WARNING_NOT_COMPLETE_ROLLBACK )
Сообщение: Внимание: по некоторым измененным нетранзакционным таблицам невозможно будет произвести откат транзакции
Ошибка: 1197 SQLSTATE: HY000 ( ER_TRANS_CACHE_FULL )
Сообщение: Транзакции, включающей большое количество команд, потребовалось более чем ‘max_binlog_cache_size’ байт. Увеличьте эту переменную сервера mysqld и попробуйте еще раз
Ошибка: 1198 SQLSTATE: HY000 ( ER_SLAVE_MUST_STOP )
Сообщение: Эту операцию невозможно выполнить при работающем потоке подчиненного сервера. Сначала выполните STOP SLAVE
Ошибка: 1199 SQLSTATE: HY000 ( ER_SLAVE_NOT_RUNNING )
Сообщение: Для этой операции требуется работающий подчиненный сервер. Сначала выполните START SLAVE
Ошибка: 1200 SQLSTATE: HY000 ( ER_BAD_SLAVE )
Сообщение: Этот сервер не настроен как подчиненный. Внесите исправления в конфигурационном файле или с помощью CHANGE MASTER TO
Ошибка: 1201 SQLSTATE: HY000 ( ER_MASTER_INFO )
Сообщение: Could not initialize master info structure, more error messages can be found in the MySQL error log
Ошибка: 1202 SQLSTATE: HY000 ( ER_SLAVE_THREAD )
Сообщение: Невозможно создать поток подчиненного сервера. Проверьте системные ресурсы
Ошибка: 1203 SQLSTATE: 42000 ( ER_TOO_MANY_USER_CONNECTIONS )
Сообщение: У пользователя %s уже больше чем ‘max_user_connections’ активных соединений
Ошибка: 1204 SQLSTATE: HY000 ( ER_SET_CONSTANTS_ONLY )
Сообщение: Вы можете использовать в SET только константные выражения
Ошибка: 1205 SQLSTATE: HY000 ( ER_LOCK_WAIT_TIMEOUT )
Сообщение: Таймаут ожидания блокировки истек; попробуйте перезапустить транзакцию
Ошибка: 1206 SQLSTATE: HY000 ( ER_LOCK_TABLE_FULL )
Сообщение: Общее количество блокировок превысило размеры таблицы блокировок
Ошибка: 1207 SQLSTATE: 25000 ( ER_READ_ONLY_TRANSACTION )
Сообщение: Блокировки обновлений нельзя получить в процессе чтения не принятой (в режиме READ UNCOMMITTED) транзакции
Ошибка: 1208 SQLSTATE: HY000 ( ER_DROP_DB_WITH_READ_LOCK )
Сообщение: Не допускается DROP DATABASE, пока поток держит глобальную блокировку чтения
Ошибка: 1209 SQLSTATE: HY000 ( ER_CREATE_DB_WITH_READ_LOCK )
Сообщение: Не допускается CREATE DATABASE, пока поток держит глобальную блокировку чтения
Ошибка: 1210 SQLSTATE: HY000 ( ER_WRONG_ARGUMENTS )
Сообщение: Неверные параметры для %s
Ошибка: 1211 SQLSTATE: 42000 ( ER_NO_PERMISSION_TO_CREATE_USER )
Сообщение: ‘%s’@’%s’ не разрешается создавать новых пользователей
Ошибка: 1212 SQLSTATE: HY000 ( ER_UNION_TABLES_IN_DIFFERENT_DIR )
Сообщение: Неверное определение таблицы; Все таблицы в MERGE должны принадлежать одной и той же базе данных
Ошибка: 1213 SQLSTATE: 40001 ( ER_LOCK_DEADLOCK )
Сообщение: Возникла тупиковая ситуация в процессе получения блокировки; Попробуйте перезапустить транзакцию
Ошибка: 1214 SQLSTATE: HY000 ( ER_TABLE_CANT_HANDLE_FT )
Сообщение: Используемый тип таблиц не поддерживает полнотекстовых индексов
Ошибка: 1215 SQLSTATE: HY000 ( ER_CANNOT_ADD_FOREIGN )
Сообщение: Невозможно добавить ограничения внешнего ключа
Ошибка: 1216 SQLSTATE: 23000 ( ER_NO_REFERENCED_ROW )
Сообщение: Невозможно добавить или обновить дочернюю строку: проверка ограничений внешнего ключа не выполняется
Ошибка: 1217 SQLSTATE: 23000 ( ER_ROW_IS_REFERENCED )
Сообщение: Невозможно удалить или обновить родительскую строку: проверка ограничений внешнего ключа не выполняется
Ошибка: 1218 SQLSTATE: 08S01 ( ER_CONNECT_TO_MASTER )
Сообщение: Ошибка соединения с головным сервером: %s
Ошибка: 1219 SQLSTATE: HY000 ( ER_QUERY_ON_MASTER )
Сообщение: Ошибка выполнения запроса на головном сервере: %s
Ошибка: 1220 SQLSTATE: HY000 ( ER_ERROR_WHEN_EXECUTING_COMMAND )
Сообщение: Ошибка при выполнении команды %s: %s
Ошибка: 1221 SQLSTATE: HY000 ( ER_WRONG_USAGE )
Сообщение: Неверное использование %s и %s
Ошибка: 1222 SQLSTATE: 21000 ( ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT )
Сообщение: Использованные операторы выборки (SELECT) дают разное количество столбцов
Ошибка: 1223 SQLSTATE: HY000 ( ER_CANT_UPDATE_WITH_READLOCK )
Сообщение: Невозможно исполнить запрос, поскольку у вас установлены конфликтующие блокировки чтения
Ошибка: 1224 SQLSTATE: HY000 ( ER_MIXING_NOT_ALLOWED )
Сообщение: Использование транзакционных таблиц наряду с нетранзакционными запрещено
Ошибка: 1225 SQLSTATE: HY000 ( ER_DUP_ARGUMENT )
Сообщение: Опция ‘%s’ дважды использована в выражении
Ошибка: 1226 SQLSTATE: 42000 ( ER_USER_LIMIT_REACHED )
Сообщение: Пользователь ‘%s’ превысил использование ресурса ‘%s’ (текущее значение: %ld)
Ошибка: 1227 SQLSTATE: HY000 ( ER_SPECIFIC_ACCESS_DENIED_ERROR )
Сообщение: В доступе отказано. Вам нужны привилегии %s для этой операции
Ошибка: 1228 SQLSTATE: HY000 ( ER_LOCAL_VARIABLE )
Сообщение: Переменная ‘%s’ является потоковой (SESSION) переменной и не может быть изменена с помощью SET GLOBAL
Ошибка: 1229 SQLSTATE: HY000 ( ER_GLOBAL_VARIABLE )
Сообщение: Переменная ‘%s’ является глобальной (GLOBAL) переменной, и ее следует изменять с помощью SET GLOBAL
Ошибка: 1230 SQLSTATE: 42000 ( ER_NO_DEFAULT )
Сообщение: Переменная ‘%s’ не имеет значения по умолчанию
Ошибка: 1231 SQLSTATE: 42000 ( ER_WRONG_VALUE_FOR_VAR )
Сообщение: Переменная ‘%s’ не может быть установлена в значение ‘%s’
Ошибка: 1232 SQLSTATE: 42000 ( ER_WRONG_TYPE_FOR_VAR )
Сообщение: Неверный тип аргумента для переменной ‘%s’
Ошибка: 1233 SQLSTATE: HY000 ( ER_VAR_CANT_BE_READ )
Сообщение: Переменная ‘%s’ может быть только установлена, но не считана
Ошибка: 1234 SQLSTATE: 42000 ( ER_CANT_USE_OPTION_HERE )
Сообщение: Неверное использование или в неверном месте указан ‘%s’
Ошибка: 1235 SQLSTATE: 42000 ( ER_NOT_SUPPORTED_YET )
Сообщение: Эта версия MySQL пока еще не поддерживает ‘%s’
Ошибка: 1236 SQLSTATE: HY000 ( ER_MASTER_FATAL_ERROR_READING_BINLOG )
Сообщение: Получена неисправимая ошибка %d: ‘%s’ от головного сервера в процессе выборки данных из двоичного журнала
Ошибка: 1237 SQLSTATE: HY000 ( ER_SLAVE_IGNORED_TABLE )
Сообщение: Slave SQL thread ignored the query because of replicate-*-table rules
Ошибка: 1238 SQLSTATE: HY000 ( ER_INCORRECT_GLOBAL_LOCAL_VAR )
Сообщение: Variable ‘%s’ is a %s variable
Ошибка: 1239 SQLSTATE: 42000 ( ER_WRONG_FK_DEF )
Сообщение: Incorrect foreign key definition for ‘%s’: %s
Ошибка: 1240 SQLSTATE: HY000 ( ER_KEY_REF_DO_NOT_MATCH_TABLE_REF )
Сообщение: Key reference and table reference don’t match
Ошибка: 1241 SQLSTATE: 21000 ( ER_OPERAND_COLUMNS )
Сообщение: Операнд должен содержать %d колонок
Ошибка: 1242 SQLSTATE: 21000 ( ER_SUBQUERY_NO_1_ROW )
Сообщение: Подзапрос возвращает более одной записи
Ошибка: 1243 SQLSTATE: HY000 ( ER_UNKNOWN_STMT_HANDLER )
Сообщение: Unknown prepared statement handler (%.*s) given to %s
Ошибка: 1244 SQLSTATE: HY000 ( ER_CORRUPT_HELP_DB )
Сообщение: Help database is corrupt or does not exist
Ошибка: 1245 SQLSTATE: HY000 ( ER_CYCLIC_REFERENCE )
Сообщение: Циклическая ссылка на подзапрос
Ошибка: 1246 SQLSTATE: HY000 ( ER_AUTO_CONVERT )
Сообщение: Преобразование поля ‘%s’ из %s в %s
Ошибка: 1247 SQLSTATE: 42S22 ( ER_ILLEGAL_REFERENCE )
Сообщение: Ссылка ‘%s’ не поддерживается (%s)
Ошибка: 1248 SQLSTATE: 42000 ( ER_DERIVED_MUST_HAVE_ALIAS )
Сообщение: Every derived table must have its own alias
Ошибка: 1249 SQLSTATE: 01000 ( ER_SELECT_REDUCED )
Сообщение: Select %u был упразднен в процессе оптимизации
Ошибка: 1250 SQLSTATE: 42000 ( ER_TABLENAME_NOT_ALLOWED_HERE )
Сообщение: Table ‘%s’ from one of the SELECTs cannot be used in %s
Ошибка: 1251 SQLSTATE: 08004 ( ER_NOT_SUPPORTED_AUTH_MODE )
Сообщение: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Ошибка: 1252 SQLSTATE: 42000 ( ER_SPATIAL_CANT_HAVE_NULL )
Сообщение: All parts of a SPATIAL index must be NOT NULL
Ошибка: 1253 SQLSTATE: 42000 ( ER_COLLATION_CHARSET_MISMATCH )
Сообщение: COLLATION ‘%s’ is not valid for CHARACTER SET ‘%s’
Ошибка: 1254 SQLSTATE: HY000 ( ER_SLAVE_WAS_RUNNING )
Сообщение: Slave is already running
Ошибка: 1255 SQLSTATE: HY000 ( ER_SLAVE_WAS_NOT_RUNNING )
Сообщение: Slave has already been stopped
Ошибка: 1256 SQLSTATE: HY000 ( ER_TOO_BIG_FOR_UNCOMPRESS )
Сообщение: Uncompressed data size too large; the maximum size is %d (probably, length of uncompressed data was corrupted)
Ошибка: 1257 SQLSTATE: HY000 ( ER_ZLIB_Z_MEM_ERROR )
Сообщение: ZLIB: Not enough memory
Ошибка: 1258 SQLSTATE: HY000 ( ER_ZLIB_Z_BUF_ERROR )
Сообщение: ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)
Ошибка: 1259 SQLSTATE: HY000 ( ER_ZLIB_Z_DATA_ERROR )
Сообщение: ZLIB: Input data corrupted
Ошибка: 1260 SQLSTATE: HY000 ( ER_CUT_VALUE_GROUP_CONCAT )
Сообщение: %d line(s) were cut by GROUP_CONCAT()
Ошибка: 1261 SQLSTATE: 01000 ( ER_WARN_TOO_FEW_RECORDS )
Сообщение: Row %ld doesn’t contain data for all columns
Ошибка: 1262 SQLSTATE: 01000 ( ER_WARN_TOO_MANY_RECORDS )
Сообщение: Row %ld was truncated; it contained more data than there were input columns
Ошибка: 1263 SQLSTATE: 01000 ( ER_WARN_NULL_TO_NOTNULL )
Сообщение: Data truncated; NULL supplied to NOT NULL column ‘%s’ at row %ld
Ошибка: 1264 SQLSTATE: 01000 ( ER_WARN_DATA_OUT_OF_RANGE )
Сообщение: Data truncated; out of range for column ‘%s’ at row %ld
Ошибка: 1265 SQLSTATE: 01000 ( ER_WARN_DATA_TRUNCATED )
Сообщение: Data truncated for column ‘%s’ at row %ld
Ошибка: 1266 SQLSTATE: HY000 ( ER_WARN_USING_OTHER_HANDLER )
Сообщение: Using storage engine %s for table ‘%s’
Ошибка: 1267 SQLSTATE: HY000 ( ER_CANT_AGGREGATE_2COLLATIONS )
Сообщение: Illegal mix of collations (%s,%s) and (%s,%s) for operation ‘%s’
Ошибка: 1268 SQLSTATE: HY000 ( ER_DROP_USER )
Сообщение: Can’t drop one or more of the requested users
Ошибка: 1269 SQLSTATE: HY000 ( ER_REVOKE_GRANTS )
Сообщение: Can’t revoke all privileges, grant for one or more of the requested users
Ошибка: 1270 SQLSTATE: HY000 ( ER_CANT_AGGREGATE_3COLLATIONS )
Сообщение: Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation ‘%s’
Ошибка: 1271 SQLSTATE: HY000 ( ER_CANT_AGGREGATE_NCOLLATIONS )
Сообщение: Illegal mix of collations for operation ‘%s’
Ошибка: 1272 SQLSTATE: HY000 ( ER_VARIABLE_IS_NOT_STRUCT )
Сообщение: Variable ‘%s’ is not a variable component (can’t be used as XXXX.variable_name)
Ошибка: 1273 SQLSTATE: HY000 ( ER_UNKNOWN_COLLATION )
Сообщение: Unknown collation: ‘%s’
Ошибка: 1274 SQLSTATE: HY000 ( ER_SLAVE_IGNORED_SSL_PARAMS )
Сообщение: SSL parameters in CHANGE MASTER are ignored because this MySQL slave was compiled without SSL support; they can be used later if MySQL slave with SSL is started
Ошибка: 1275 SQLSTATE: HY000 ( ER_SERVER_IS_IN_SECURE_AUTH_MODE )
Сообщение: Сервер запущен в режиме —secure-auth (безопасной авторизации), но для пользователя ‘%s’@’%s’ пароль сохранён в старом формате; необходимо обновить формат пароля
Ошибка: 1276 SQLSTATE: HY000 ( ER_WARN_FIELD_RESOLVED )
Сообщение: Поле или ссылка ‘%s%s%s%s%s’ из SELECTа #%d была найдена в SELECTе #%d
Ошибка: 1277 SQLSTATE: HY000 ( ER_BAD_SLAVE_UNTIL_COND )
Сообщение: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Ошибка: 1278 SQLSTATE: HY000 ( ER_MISSING_SKIP_SLAVE )
Сообщение: It is recommended to run with —skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you are not safe in case of unexpected slave’s mysqld restart
Ошибка: 1279 SQLSTATE: HY000 ( ER_UNTIL_COND_IGNORED )
Сообщение: SQL thread is not to be started so UNTIL options are ignored
Ошибка: 1280 SQLSTATE: 42000 ( ER_WRONG_NAME_FOR_INDEX )
Сообщение: Incorrect index name ‘%s’
Ошибка: 1281 SQLSTATE: 42000 ( ER_WRONG_NAME_FOR_CATALOG )
Сообщение: Incorrect catalog name ‘%s’
Ошибка: 1282 SQLSTATE: HY000 ( ER_WARN_QC_RESIZE )
Сообщение: Кеш запросов не может установить размер %lu, новый размер кеша зпросов — %lu
Ошибка: 1283 SQLSTATE: HY000 ( ER_BAD_FT_COLUMN )
Сообщение: Column ‘%s’ cannot be part of FULLTEXT index
Ошибка: 1284 SQLSTATE: HY000 ( ER_UNKNOWN_KEY_CACHE )
Сообщение: Unknown key cache ‘%s’
Ошибка: 1285 SQLSTATE: HY000 ( ER_WARN_HOSTNAME_WONT_WORK )
Сообщение: MySQL is started in —skip-name-resolve mode. You need to restart it without this switch for this grant to work
Ошибка: 1286 SQLSTATE: 42000 ( ER_UNKNOWN_STORAGE_ENGINE )
Сообщение: Unknown table engine ‘%s’
Ошибка: 1287 SQLSTATE: HY000 ( ER_WARN_DEPRECATED_SYNTAX )
Сообщение: ‘%s’ is deprecated, use ‘%s’ instead
Ошибка: 1288 SQLSTATE: HY000 ( ER_NON_UPDATABLE_TABLE )
Сообщение: Таблица %s в %s не может изменятся
Ошибка: 1289 SQLSTATE: HY000 ( ER_FEATURE_DISABLED )
Сообщение: The ‘%s’ feature was disabled; you need MySQL built with ‘%s’ to have it working
Ошибка: 1290 SQLSTATE: HY000 ( ER_OPTION_PREVENTS_STATEMENT )
Сообщение: The MySQL server is running with the %s option so it cannot execute this statement
Ошибка: 1291 SQLSTATE: HY000 ( ER_DUPLICATED_VALUE_IN_TYPE )
Сообщение: Column ‘%s’ has duplicated value ‘%s’ in %s
Ошибка: 1292 SQLSTATE: HY000 ( ER_TRUNCATED_WRONG_VALUE )
Сообщение: Truncated wrong %s value: ‘%s’
Ошибка: 1293 SQLSTATE: HY000 ( ER_TOO_MUCH_AUTO_TIMESTAMP_COLS )
Сообщение: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Ошибка: 1294 SQLSTATE: HY000 ( ER_INVALID_ON_UPDATE )
Сообщение: Invalid ON UPDATE clause for ‘%s’ column
Ошибка: 1295 SQLSTATE: HY000 ( ER_UNSUPPORTED_PS )
Сообщение: This command is not supported in the prepared statement protocol yet
Ошибка: 1296 SQLSTATE: HY000 ( ER_GET_ERRMSG )
Сообщение: Got error %d ‘%s’ from %s
Ошибка: 1297 SQLSTATE: HY000 ( ER_GET_TEMPORARY_ERRMSG )
Сообщение: Got temporary error %d ‘%s’ from %s
Ошибка: 1298 SQLSTATE: HY000 ( ER_UNKNOWN_TIME_ZONE )
Сообщение: Unknown or incorrect time zone: ‘%s’
Ошибка: 1299 SQLSTATE: HY000 ( ER_WARN_INVALID_TIMESTAMP )
Сообщение: Invalid TIMESTAMP value in column ‘%s’ at row %ld
Ошибка: 1300 SQLSTATE: HY000 ( ER_INVALID_CHARACTER_STRING )
Сообщение: Invalid %s character string: ‘%s’
Ошибка: 1301 SQLSTATE: HY000 ( ER_WARN_ALLOWED_PACKET_OVERFLOWED )
Сообщение: Result of %s() was larger than max_allowed_packet (%ld) — truncated
Ошибка: 1302 SQLSTATE: HY000 ( ER_CONFLICTING_DECLARATIONS )
Сообщение: Conflicting declarations: ‘%s%s’ and ‘%s%s’
Client error information comes from the following files:
The Error values and the symbols in parentheses correspond to definitions in the include/errmsg.h MySQL source file.
The Message values correspond to the error messages that are listed in the libmysql/errmsg.c file. %d and %s represent numbers and strings, respectively, that are substituted into the messages when they are displayed.
Because updates are frequent, it is possible that these files contain additional error information not listed here.
Ошибка: 2000 ( CR_UNKNOWN_ERROR )
Сообщение: Unknown MySQL error
Ошибка: 2001 ( CR_SOCKET_CREATE_ERROR )
Сообщение: Can’t create UNIX socket (%d)
Ошибка: 2002 ( CR_CONNECTION_ERROR )
Сообщение: Can’t connect to local MySQL server through socket ‘%s’ (%d)
Ошибка: 2003 ( CR_CONN_HOST_ERROR )
Сообщение: Can’t connect to MySQL server on ‘%s’ (%d)
Ошибка: 2004 ( CR_IPSOCK_ERROR )
Сообщение: Can’t create TCP/IP socket (%d)
Ошибка: 2005 ( CR_UNKNOWN_HOST )
Сообщение: Unknown MySQL server host ‘%s’ (%d)
Ошибка: 2006 ( CR_SERVER_GONE_ERROR )
Сообщение: MySQL server has gone away
Ошибка: 2007 ( CR_VERSION_ERROR )
Сообщение: Protocol mismatch; server version = %d, client version = %d
Ошибка: 2008 ( CR_OUT_OF_MEMORY )
Сообщение: MySQL client ran out of memory
Ошибка: 2009 ( CR_WRONG_HOST_INFO )
Сообщение: Wrong host info
Ошибка: 2010 ( CR_LOCALHOST_CONNECTION )
Сообщение: Localhost via UNIX socket
Ошибка: 2011 ( CR_TCP_CONNECTION )
Сообщение: %s via TCP/IP
Ошибка: 2012 ( CR_SERVER_HANDSHAKE_ERR )
Сообщение: Error in server handshake
Ошибка: 2013 ( CR_SERVER_LOST )
Сообщение: Lost connection to MySQL server during query
Ошибка: 2014 ( CR_COMMANDS_OUT_OF_SYNC )
Сообщение: Commands out of sync; you can’t run this command now
Ошибка: 2015 ( CR_NAMEDPIPE_CONNECTION )
Сообщение: Named pipe: %s
Ошибка: 2016 ( CR_NAMEDPIPEWAIT_ERROR )
Сообщение: Can’t wait for named pipe to host: %s pipe: %s (%lu)
Ошибка: 2017 ( CR_NAMEDPIPEOPEN_ERROR )
Сообщение: Can’t open named pipe to host: %s pipe: %s (%lu)
Ошибка: 2018 ( CR_NAMEDPIPESETSTATE_ERROR )
Сообщение: Can’t set state of named pipe to host: %s pipe: %s (%lu)
Ошибка: 2019 ( CR_CANT_READ_CHARSET )
Сообщение: Can’t initialize character set %s (path: %s)
Ошибка: 2020 ( CR_NET_PACKET_TOO_LARGE )
Сообщение: Got packet bigger than ‘max_allowed_packet’ bytes
Ошибка: 2021 ( CR_EMBEDDED_CONNECTION )
Сообщение: Embedded server
Ошибка: 2022 ( CR_PROBE_SLAVE_STATUS )
Сообщение: Error on SHOW SLAVE STATUS:
Ошибка: 2023 ( CR_PROBE_SLAVE_HOSTS )
Сообщение: Error on SHOW SLAVE HOSTS:
Ошибка: 2024 ( CR_PROBE_SLAVE_CONNECT )
Сообщение: Error connecting to slave:
Ошибка: 2025 ( CR_PROBE_MASTER_CONNECT )
Сообщение: Error connecting to master:
Ошибка: 2026 ( CR_SSL_CONNECTION_ERROR )
Сообщение: SSL connection error
Ошибка: 2027 ( CR_MALFORMED_PACKET )
Сообщение: Malformed packet
Ошибка: 2028 ( CR_WRONG_LICENSE )
Сообщение: This client library is licensed only for use with MySQL servers having ‘%s’ license
Ошибка: 2029 ( CR_NULL_POINTER )
Сообщение: Invalid use of null pointer
Ошибка: 2030 ( CR_NO_PREPARE_STMT )
Сообщение: Statement not prepared
Ошибка: 2031 ( CR_PARAMS_NOT_BOUND )
Сообщение: No data supplied for parameters in prepared statement
Ошибка: 2032 ( CR_DATA_TRUNCATED )
Сообщение: Data truncated
Ошибка: 2033 ( CR_NO_PARAMETERS_EXISTS )
Сообщение: No parameters exist in the statement
Ошибка: 2034 ( CR_INVALID_PARAMETER_NO )
Сообщение: Invalid parameter number
Ошибка: 2035 ( CR_INVALID_BUFFER_USE )
Сообщение: Can’t send long data for non-string/non-binary data types (parameter: %d)
Ошибка: 2036 ( CR_UNSUPPORTED_PARAM_TYPE )
Сообщение: Using unsupported buffer type: %d (parameter: %d)
Ошибка: 2037 ( CR_SHARED_MEMORY_CONNECTION )
Сообщение: Shared memory: %s
Ошибка: 2038 ( CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR )
Сообщение: Can’t open shared memory; client could not create request event (%lu)
Ошибка: 2039 ( CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR )
Сообщение: Can’t open shared memory; no answer event received from server (%lu)
Ошибка: 2040 ( CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR )
Сообщение: Can’t open shared memory; server could not allocate file mapping (%lu)
Ошибка: 2041 ( CR_SHARED_MEMORY_CONNECT_MAP_ERROR )
Сообщение: Can’t open shared memory; server could not get pointer to file mapping (%lu)
Ошибка: 2042 ( CR_SHARED_MEMORY_FILE_MAP_ERROR )
Сообщение: Can’t open shared memory; client could not allocate file mapping (%lu)
Ошибка: 2043 ( CR_SHARED_MEMORY_MAP_ERROR )
Сообщение: Can’t open shared memory; client could not get pointer to file mapping (%lu)
Ошибка: 2044 ( CR_SHARED_MEMORY_EVENT_ERROR )
Сообщение: Can’t open shared memory; client could not create %s event (%lu)
Ошибка: 2045 ( CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR )
Сообщение: Can’t open shared memory; no answer from server (%lu)
Ошибка: 2046 ( CR_SHARED_MEMORY_CONNECT_SET_ERROR )
Сообщение: Can’t open shared memory; cannot send request event to server (%lu)
Ошибка: 2047 ( CR_CONN_UNKNOW_PROTOCOL )
Сообщение: Wrong or unknown protocol
Ошибка: 2048 ( CR_INVALID_CONN_HANDLE )
Сообщение: Invalid connection handle
Ошибка: 2049 ( CR_SECURE_AUTH )
Сообщение: Connection using old (pre-4.1.1) authentication protocol refused (client option ‘secure_auth’ enabled)
Ошибка: 2050 ( CR_FETCH_CANCELED )
Сообщение: Row retrieval was canceled by mysql_stmt_close() call
Ошибка: 2051 ( CR_NO_DATA )
Сообщение: Attempt to read column without prior row fetch
Ошибка: 2052 ( CR_NO_STMT_METADATA )
Сообщение: Prepared statement contains no metadata
Источник
I have just been getting the same error. My table only has 1 row, and there is not duplicate.
TLDR: check your foreign keys, make sure the value exists in the parent table. MySQL 5.6.3 apparently can’t tell you the real reason for the error.
mysql> select * from users_sessions;
+---------+----------------------------+---------------------+
| user_id | session_id | last_accessed |
+---------+----------------------------+---------------------+
| 3 | 6n02k8catt2kdn30b92ljtrpc6 | 2019-01-13 23:30:53 |
+---------+----------------------------+---------------------+
1 row in set (0.00 sec)
mysql>
mysql> INSERT INTO `users_sessions` VALUES(3,"fbfibdog1qumlj5mg4kstbagu7","2019-01-14 18:37:15") ON DUPLICATE KEY UPDATE last_accessed = "2019-01-14 18:37:15";
ERROR 1062 (23000): Duplicate entry '3-fbfibdog1qumlj5mg4kstbagu7' for key 'PRIMARY'
There is no such duplicate key!
I tried running the same insert without the ON DUPLICATE KEY ...
clause, and got a better clue of what was happening.
mysql> INSERT INTO `users_sessions` VALUES(3,"fbfibdog1qumlj5mg4kstbagu7","2019-01-14 18:37:15");
ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`login`.`users_sessions`, CONSTRAINT `fk_sessions_id` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)
Now we’re onto something. So I tried running the original query with a different value that does have a matching value in the foreign key table. The query ran without issue.
Why does MySQL seem to issue the wrong error? I’m not sure, but it probably has to do with the way ON DUPLICATE KEY UPDATE
is implemented. I tried running the same insert query as a REPLACE INTO
query and got the same error.
mysql> REPLACE INTO `users_sessions` VALUES(3,"fbfibdog1qumlj5mg4kstbagu7","2019-01-14 18:37:15");
ERROR 1062 (23000): Duplicate entry '3-fbfibdog1qumlj5mg4kstbagu7' for key 'PRIMARY'
If you run into this error for no apparent reason, check your foreign keys. Try a regular INSERT
query (instead of REPLACE INTO
or INSERT ... ON DUPLICATE KEY UPDATE...
) as well.
ТАБЛИЦЫ
CREATE TABLE FABRICANTES(
COD_FABRICANTE integer NOT NULL,
NOMBRE VARCHAR(15),
PAIS VARCHAR(15),
primary key (cod_fabricante)
);
CREATE TABLE ARTICULOS(
ARTICULO VARCHAR(20)NOT NULL,
COD_FABRICANTE integer NOT NULL,
PESO integer NOT NULL ,
CATEGORIA VARCHAR(10) NOT NULL,
PRECIO_VENTA integer,
PRECIO_COSTO integer,
EXISTENCIAS integer,
primary key (articulo,cod_fabricante),
foreign key (cod_fabricante) references Fabricantes(cod_fabricante)
);
ВСТАВИТЬ В:
INSERT INTO FABRICANTES VALUES(10,'CALVO', 'ESPAÑA');
INSERT INTO FABRICANTES VALUES(15,'LU', 'BELGICA');
INSERT INTO FABRICANTES VALUES(20,'BARILLA', 'ITALIA');
INSERT INTO FABRICANTES VALUES(25,'GALLO', 'ESPAÑA');
INSERT INTO FABRICANTES VALUES(30,'PRESIDENT', 'FRANCIA');
INSERT INTO ARTICULOS VALUES ('Macarrones',20, 1, 'Primera',100,98,120);
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 2, 'Primera',120,100,100);
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 1, 'Segunda',99,50,100);
INSERT INTO ARTICULOS VALUES ('Macarrones',20, 1, 'Tercera',80,50,100);
INSERT INTO ARTICULOS VALUES ('Atún',10, 3, 'Primera',200,150,220);
INSERT INTO ARTICULOS VALUES ('Atún',10, 3, 'Segunda',150,100,220);
INSERT INTO ARTICULOS VALUES ('Atún',10, 3, 'Tercera',100,50,220);
INSERT INTO ARTICULOS VALUES ('Sardinillas',10, 1,'Primera',250,200,200);
INSERT INTO ARTICULOS VALUES ('Sardinillas',10, 1,'Segunda',200,160,200);
INSERT INTO ARTICULOS VALUES ('Sardinillas',10, 1,'Tercera',100,150,220);
INSERT INTO ARTICULOS VALUES ('Mejillones',10, 1, 'Tercera',90,50,200);
INSERT INTO ARTICULOS VALUES ('Mejillones',10, 1, 'Primera',200,150,300);
INSERT INTO ARTICULOS VALUES ('Macarrones',25, 1, 'Primera',90,68,150);
INSERT INTO ARTICULOS VALUES ('Tallarines',25, 1, 'Primera',100,90,100);
INSERT INTO ARTICULOS VALUES ('Fideos',25, 1, 'Segunda',75,50,100);
INSERT INTO ARTICULOS VALUES ('Fideos',25, 1, 'Primera',100,80,100);
INSERT INTO ARTICULOS VALUES ('Galletas Cuadradas',15, 1, 'Primera',100,80,100);
INSERT INTO ARTICULOS VALUES ('Galletas Cuadradas',15, 1, 'Segunda',70,50,100);
INSERT INTO ARTICULOS VALUES ('Galletas Cuadradas',15, 1, 'Tercera',50,40,100);
INSERT INTO ARTICULOS VALUES ('Barquillos',15, 1, 'Primera',100,80,100);
INSERT INTO ARTICULOS VALUES ('Barquillos',15, 1, 'Segunda',100,80,100);
INSERT INTO ARTICULOS VALUES ('Canutillos',15, 2, 'Primera',170,150,110);
INSERT INTO ARTICULOS VALUES ('Canutillos',15, 2, 'Segunda',120,150,110);
INSERT INTO ARTICULOS VALUES ('Leche entera',30, 1, 'Primera',110,100,300);
INSERT INTO ARTICULOS VALUES ('Leche desnat.',30, 1, 'Primera',120,100,300);
INSERT INTO ARTICULOS VALUES ('Leche semi.',30, 1, 'Primera',130,110,300);
INSERT INTO ARTICULOS VALUES ('Leche entera',30, 2, 'Primera',210,200,300);
INSERT INTO ARTICULOS VALUES ('Leche desnat.',30, 2, 'Primera',220,200,300);
INSERT INTO ARTICULOS VALUES ('Leche semi.',30, 2, 'Primera',230,210,300);
INSERT INTO ARTICULOS VALUES ('Mantequilla',30, 1, 'Primera',510,400,200);
INSERT INTO ARTICULOS VALUES ('Mantequilla',30, 1, 'Segunda',450,340,200);
ОШИБКА:
Error Code: 1062. Duplicate entry 'Macarrones-20' for key 'PRIMARY'
Если я удалю эту строку, я получаю ту же ошибку, но с «Tallarines-20»
Извините, если есть ошибка заклинания. Спасибо!
Вы пытаетесь вставить две строки с одним и тем же основным ключом.
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 2, 'Primera',120,100,100);
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 1, 'Segunda',99,50,100);
Вам, вероятно, нужно добавить CATEGORIA
в ваш первичный ключ для таблицы ARTICULOS
, потому что вы пытаетесь вставить несколько строк с одним и тем же основным ключом несколько раз.
primary key (articulo,cod_fabricante, categoria)
Этот код ошибки 1062 происходит из-за дублирования записи. Вы пытаетесь вставить значение, которое уже существует в поле первичного ключа. Недавно я решил эту проблему, добавив auto_increment в поле первичного ключа. Я выполнил исправление, приведенное в этом сообщении как решить код ошибки mysql: 10У меня была такая же ошибка при попытке установить столбец в качестве первичного ключа. Я просто удалил столбец и воссоздал его, что позволило мне назначить его в качестве первичного ключа. Это также устраняет ошибку # 1075, где требуется, чтобы столбец автоматического инкремента был ключом (если вы попытаетесь установить столбец для автоматического увеличения).
7 и 8th INSERT
равны. Вы не можете ввести более одной строки с одним и тем же основным ключом. Обратите внимание, что ваш первичный ключ — это набор: (articulate, cod_fabricante)
, поэтому любая строка с теми же articulate
и cod_fabricante
будет генерировать ошибку 1062.
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 2, 'Primera',120,100,100);
INSERT INTO ARTICULOS VALUES ('Tallarines',20, 1, 'Segunda',99,50,100);
Удалите одну из строк или измените первичный ключ одного из нихУ вас есть ошибка дублирующего ключа во второй таблице ARTICULOS. у вас есть первичный ключ с комбинацией из двух столбцов (articulo, cod_fabricante).
Таким образом, все строки однозначно определяются в комбинации этих столбцов. удалите повторяющиеся строки из второй таблицы или замените первичный ключ.
Duplicate Entry error is a very common error that has been experienced by users working with databases. Users have reported that the error has commonly occurred when using the SQL. The error appears when updating the tables. Furthermore, the error has occurred in several scenarios which include using Laravel, PHP, Atlassian, Joomla, and similar web development and databases. Now in this article, the objective is to give you important information regarding the error and to give you some methods by which you can fix the issue by yourself in no time. But before let’s go through its causes.
Causes of Duplicate Entry Error Problem Issue
While researching about the error and its possible solution we come up with some very common users that have been reported by the users. The Duplicate Entry error appears because of multiple reasons depending like if you are working with SQL possible the error comes because of the duplicate key, unique data field, or data type -upper limit. Also if the table indexes are corrupted then also the error seems to appear. However, the error also occurs due to mistakes in the codes or the way the user is updating or modifying the table.
- Duplicate key or entries
- Unique data field
- Data type -upper limit
- Table indexes are corrupted
- Mistakes in the codes
Similar Types of Duplicate Entry Error Problem Issue
- MySQL error 1062 duplicate entry ‘0’ for key ‘primary’
- MySQL for key ‘primary auto_increment
- #1062 – duplicate entry ‘1’ for key ‘primary’ PHPMyAdmin
- ‘0’ for key ‘primary Codeigniter
- Duplicate entry 255 for key ‘primary
- 82 for key primary
- Duplicate entry ‘4294967295’ for key ‘primary
- #1062 40 for key primary
In this section, we will try to cover some methods that you can try to resolve the Duplicate Entry Error. The following are the methods we will go through. Since we do not know the actual cause of the issue we will be giving you solutions according to the scenarios.
1. The Value Already Exist (Duplicate Value)
Now the #1062 – duplicate entry ‘1’ for key ‘primary’ Error may occur when the data or value which you are trying to insert already exists in the Primary key. Furthermore, it is important to know that the Primary key does not accept duplicate entries. To resolve this you can do the below steps.
- STEP 1. Put the Primary Key Colum as to be auto increment
- STEP 2. Use the below syntax
ALTER TABLE ‘table_name’ ADD ‘column_name’ INT NOT NULL AUTO_INCREMENT PRIMARY KEY;
**NOTE: You can ignore the Primary key column while inserting values.
Alternatively,
you can put NULL vale to Primary Key which in turn automatically generates sequence numbers.
2. Unique Data Filed
The error also appears when an existing table has been set to unique. So when you try to add any column the error appears. So the simple fix to this duplicate entry for key ‘primary’ issue is to create a new column but don’t set it to the Unique field. Insert whatever data you wish to insert and the set is as unique if you want to.
3. Data Limit Out Of Range
The error also appears when if you have been using the auto_increment function and the data exceeds the limit of auto_increment function the #1062 – duplicate entry ‘0’ for key ‘primary’ error appears. Suppose you have assigned the primary key column as something. And the limit of the auto_increment is set to a max of 127. Now when you enter a new record whose id is more than 127 the error will emerge. To fix this follow the steps.
- STEP 1. We can resolve the issue by modifying the index field. You may use any of the following signed/unsigned INT/ BIGINT
- STEP 2. Use the below command to increase the maximum range
ALTER TABLE ‘table_name’ MODIFY ‘column_name’ INT UNSIGNED NOT NULL AUTO_INCREMENT;
- STEP 3. Also if you want to retrieve the recently incremented value, the below command
mysql> SELECT LAST_INSERT_ID();
4. Creating a New Database & Importing
If you have tried the above methods and the duplicate entry 0 for key primary error still persists, try the below step to fix the issue.
- STEP 1. Firstly backup your database using the below command
mysqldump database_name > database_name.sql
- STEP 2. Once the backup is done, drop the database
DROP DATABASE database_name;
- STEP 3. Now recreate the database, by using the below command
CREATE DATABASE database_name;
- STEP 4. Now that you have created the database import using the below command
mysql database_name < database_name.sql;
- STEP 5. Now check if the duplicate entry ‘1’ for key ‘primary’ error still occurs
5. When Importing Table from Database in PHPmyadmin
The error has been seen when the user tries to import the exported tables in PHPMyAdmin the duplicate entry for key primary error seems to appear. Follow the steps to do it the right way.
- STEP 1. When you are exporting your SQL database in PHPMyAdmin, use the custom export method
- STEP 2. In the export, method choose Custom- display all possible options
- STEP 3. In the options instead of selecting any of the insert options, choose update
- STEP 4. Using this way will prevent any kind of duplicated inserts to get rid of remove duplicate entry in excel error.
6. Duplicate Username
One of the users has been facing the issue because the database does not allow duplicate usernames. So kindly make sure that the username is unique. To fix this how to remove the duplicate entry in excel issue follow the steps.
- STEP 1. In order to resolve the issue, you have to find find the duplicate usernames, which can be done using the following command
SELECT username FROM #__users GROUP BY username HAVING COUNT(*) > 1
**NOTE: Instead of #_ use the prefix for your tables.
- STEP 2. Fix the 1062 duplicate entry 1 for key primary issue
7. Other Troubleshooting Points
- Error in WordPress Database: So one the cause why this duplicate entry 1 for key primary error occurs is because of adswsc_DbInstall. It is comparing the unequal table names.
- Update the Program: Make sure that if you are using any database application it is updated to the latest version.
- Crosscheck the code: Make sure that the code is accurate and without errors
Conclusion:
In this troubleshooting, we have seen various methods that are the solution to fix Duplicate Entry Error. The error may appear due to multiple reasons and we have tried to cover most of them. Furthermore, we have also talked about the possible causes that lead to this error.
We hope this Duplicate Entry troubleshooting guide fixed your issue. For articles on troubleshooting and tips follow us. Thank You!