Re: ERROR 1062 (23000): Duplicate entry '31592' for key 'PRIMARY'

2011-04-28 Thread misiaq
Corrupted table and / or index. A number of reasons could cause this issue: http://dev.mysql.com/doc/refman/5.1/en/corrupted-myisam-tables.html Regards, m "Adarsh Sharma" pisze: > Thanks , but there is no trigger on tables. > > Even I solved the problem after googling a link but cannot unders

Re: ERROR 1062 (23000): Duplicate entry '31592' for key 'PRIMARY'

2011-04-28 Thread Adarsh Sharma
INE=MyISAM AUTO_INCREMENT=31592 DEFAULT CHARSET=latin1 Today don't know why below error occurs when i am going insert some data in it : mysql> insert into login(user_id,log_status) values(2,1); ERROR 1062 (23000): Duplicate entry '31592' for key 'PRIMARY' I check the lat

ERROR 1062 (23000): Duplicate entry '31592' for key 'PRIMARY'

2011-04-28 Thread Adarsh Sharma
`user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=31592 DEFAULT CHARSET=latin1 Today don't know why below error occurs when i am going insert some data in it : mysql> insert into login(user_id,log_status) values(2,1); ERROR 1062 (23000): Duplicate entry '31592' for key 

Re: mysql slave got duplicate error (1062) frequently

2008-07-10 Thread Changying Li
my sql version is mysql> select version(); +--+ | version()| +--+ | 5.0.24a-standard-log | +--+ 1 row in set (0.00 sec) linux kernel 2.6.11.6 Changying Li <[EMAIL PROTECTED]> writes: > I set a master and a slave, master s

mysql slave got duplicate error (1062) frequently

2008-07-10 Thread Changying Li
I set a master and a slave, master server is a live server, slave server does't online. but I got 1062 error frenquently, especially when I stop slave a while and start slave again. following is from my general log: 19 Query insert into user_stat (column_name,user_id,c

ERROR 1062 (23000): Duplicate entry '1' for key 1 during SELECT

2008-03-12 Thread mike
>Description: When running the statements below, MySQL errors out with: ERROR 1062 (23000) at line 5: Duplicate entry '1' for key 1 during SELECT >How-To-Repeat: drop table if exists t; create table t (f int not null); insert into t values (1),(1); select 1 from t straight

Re: Update failing with error 1062

2007-02-14 Thread Simon Giddings
Found the source of my problem. I had an update trigger connected to this table which was trying to create a new entry in another table instead of updating an existing one! There we go! Simon -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http:

Re: Update failing with error 1062

2007-02-13 Thread Simon Giddings
Hi Michael Here is the table schema : DROP TABLE IF EXISTS `clients`.`calendarentry`; CREATE TABLE `clients`.`calendarentry` ( `idCalendarEntry` int(10) unsigned NOT NULL auto_increment, `Sujet` varchar(80) NOT NULL, `Debut` datetime NOT NULL, `Fin` datetime NOT NULL, `Notes` varchar(2048)

Re: Update failing with error 1062

2007-02-12 Thread Michael Dykman
Simon, send in the schema for the table in question, that should show something. The only condition I can think of off the top of my head which might do that is if you have another unique key in your structure and that is the one this error is complaining about. On 2/12/07, Simon Giddings <[

Re: Update failing with error 1062

2007-02-12 Thread Devi
Hi MySQLeers, How can I setup multiple daemons, One daemon for one database? So that they can act independenly. What might be the pitfalls over here? In what situation one can opt for multiple daemons? What about maximum_connections. Is it for all the server instances? Thanks DEVI. G

Fw: Update failing with error 1062

2007-02-12 Thread Devi
- Original Message - From: "Devi" <[EMAIL PROTECTED]> To: Sent: Monday, February 12, 2007 5:34 PM Subject: Re: Update failing with error 1062 Hi MySQLeers, How can I setup multiple daemons, One daemon for one database? So that they can act independenly. W

Update failing with error 1062

2007-02-12 Thread Simon Giddings
Good morning, I issue an update statement containing a where clause on the primary index, so as to update a single record. Howerver this is failing with "Duplicate entry '6' for key 1" - update clients.calendarentry set Subject = 'presentation' where idCalendarEntry = 6; In the table, the fi

Re: ERROR 1062 (23000): Duplicate entry '' for key 2

2004-12-07 Thread Gleb Paharenko
Hello. You may execute select statement similar to this one to determine that you already have rows with keys you want to insert: select * from subscriber where phplib_id='val1',$USERCOL='val2',domain='val3'; Where val1,val2,val3 - values from corresponding insert query. szj <[EMAI

ERROR 1062 (23000): Duplicate entry '' for key 2

2004-12-05 Thread szj
Hi: I am using MySQL under FC2 on Intel P4. I created one table using the following command CREATE TABLE subscriber ( phplib_id varchar(32) NOT NULL default '', $USERCOL varchar(64) NOT NULL default '', domain varchar(128) NOT NULL default '', password varchar(25) NOT NULL default '', fir

ERROR 1062: Duplicate entry

2004-07-26 Thread Eli Shemer
details. mysql> create index url_site_idx on URL(Site(255)); ERROR 1062: Duplicate entry 'Transmeta unveils futuristic Crusoe chip ' for key 1 mysql> mysql> select version(); +-+ | version() | +-+ | 4.0.17-standard | +-+ 1 r

Re: Error: 1062 Duplicate Entry '252' for key 1

2004-01-29 Thread Mike Mapsnac
| Thanks From: "Jigal van Hemert" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: Error: 1062 Duplicate Entry '252' for key 1 Date: Thu, 29 Jan 2004 14:32:51 +0100 From: "Mike Mapsnac" <[EMAIL P

RE: Error: 1062 Duplicate Entry '252' for key 1

2004-01-29 Thread Mike Johnson
From: Mike Mapsnac [mailto:[EMAIL PROTECTED] > Thanks for explanation. > > But I don't insert anything at all to the SLAVE. It is 100%. > > Can the problem be problem be relative to Mysql 4.0.13 ? > > Thanks Out of curiosity, what's the data type of this column? -- Mike Johnson Web Develop

Re: Error: 1062 Duplicate Entry '252' for key 1

2004-01-29 Thread Mike Mapsnac
Thanks for explanation. But I don't insert anything at all to the SLAVE. It is 100%. Can the problem be problem be relative to Mysql 4.0.13 ? Thanks From: "Jigal van Hemert" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]&g

Re: Error: 1062 Duplicate Entry '252' for key 1

2004-01-29 Thread Jigal van Hemert
From: "Mike Mapsnac" <[EMAIL PROTECTED]> > The slave server stop working today and I looked to the error > log and the the error message is > Error: 1062 Duplicate Entry '252' for key 1 > > And than it shows the query and time when it happens. My >

Error: 1062 Duplicate Entry '252' for key 1

2004-01-29 Thread Mike Mapsnac
Hello The slave server stop working today and I looked to the error log and the the error message is Error: 1062 Duplicate Entry '252' for key 1 And than it shows the query and time when it happens. My question is why no error messages on master server just on slave server? As I

Re: ERROR 1062

2002-08-26 Thread Osman Omar
It's work thanks On Tue, 2002-08-27 at 14:24, Dan Nelson wrote: > In the last episode (Aug 27), Osman Omar said: > > below is my tables properties, > > and my last record id is 127; > > > > mysql> desc emcs; > > ++-+--+-+++ > > | Fie

Re: ERROR 1062

2002-08-26 Thread Dan Nelson
In the last episode (Aug 27), Osman Omar said: > below is my tables properties, > and my last record id is 127; > > mysql> desc emcs; > ++-+--+-+++ > | Field | Type| Null | Key | Default| Extra | > +---

Re: ERROR 1062

2002-08-26 Thread Osman Omar
"Osman Omar" <[EMAIL PROTECTED]> > To: "MySQL" <[EMAIL PROTECTED]> > Sent: Tuesday, August 27, 2002 10:46 AM > Subject: ERROR 1062 > > > > Hi > > > > I get this error. > > > > any idea? > > > > > &

Re: ERROR 1062

2002-08-26 Thread Karthik
t; <[EMAIL PROTECTED]> To: "MySQL" <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2002 10:46 AM Subject: ERROR 1062 > Hi > > I get this error. > > any idea? > > > mysql> insert into emcs (insp_date,judge_date,model,lot_no,remark) > values > ->

ERROR 1062

2002-08-26 Thread Osman Omar
Hi I get this error. any idea? mysql> insert into emcs (insp_date,judge_date,model,lot_no,remark) values -> (20020816,20020816,'TA-SL5','010',''); ERROR 1062: Duplicate entry '127' for key 1 mysql> ---

Re: MySQL ERROR 1062: Duplicate entry '1' for key 1

2002-07-29 Thread Dan Nelson
In the last episode (Jul 29), Prince Chidi Ajuzie said: > MySQL Question > I run sql version 3.23.42. > > LOAD DATA INFILE "/usr/lists" INTO TABLE lists; > ERROR 1062: Duplicate entry '1' for key 1 > > Please how do i run this successfully. Ive tried th

Re: MySQL ERROR 1062: Duplicate entry '1' for key 1

2002-07-29 Thread Victoria Reznichenko
Prince, Monday, July 29, 2002, 12:58:22 PM, you wrote: PCA> MySQL Question PCA> I run sql version 3.23.42. PCA> LOAD DATA INFILE "/usr/lists" INTO TABLE lists; PCA> ERROR 1062: Duplicate entry '1' for key 1 PCA> Please how do i run this successfully. Ive t

MySQL ERROR 1062: Duplicate entry '1' for key 1

2002-07-29 Thread Prince Chidi Ajuzie
MySQL Question I run sql version 3.23.42. LOAD DATA INFILE "/usr/lists" INTO TABLE lists; ERROR 1062: Duplicate entry '1' for key 1 Please how do i run this successfully. Ive tried the REPLACE opt

Re: Error 1062: Duplicate entry '127' for Key 1

2002-01-17 Thread Fred van Engen
It's probably a tinyint field which won't go higher than 127. Fred. On Thu, Jan 17, 2002 at 02:40:54PM +0100, Thibaut Allender wrote: > > an index cannot be null > > you should do this : > > insert into equipment (id,description) values ('','test data'); > > regards > > At 14:27 17/01/2002

Re: Error 1062: Duplicate entry '127' for Key 1

2002-01-17 Thread Thibaut Allender
an index cannot be null you should do this : insert into equipment (id,description) values ('','test data'); regards At 14:27 17/01/2002, you wrote: >database,sql,query,table > >If you just reply to this message, and include the entire text of it in the >reply, your reply will go through. How

Error 1062: Duplicate entry '127' for Key 1

2002-01-17 Thread Gary Smith
database,sql,query,table If you just reply to this message, and include the entire text of it in the reply, your reply will go through. However, you should first review the text of the message to make sure it has something to do with MySQL. Just typing the word MySQL once will be sufficient, for

Re: ERROR 1062 at line 46: Duplicate entry '4' for key 1

2001-06-29 Thread ryc
at line is #46... its the 46th line from the top of the file. ryan > Hi; > > I'm trying to learn MySQL, having some difficulties: > > mysql Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686) > for pc-linux-gnu (i686) > > Getting the following error: > > ERROR

ERROR 1062 at line 46: Duplicate entry '4' for key 1

2001-06-29 Thread Joe Taraba
Hi; I'm trying to learn MySQL, having some difficulties: mysql Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686) for pc-linux-gnu (i686) Getting the following error: ERROR 1062 at line 46: Duplicate entry '4' for key 1 What I did was: mysqldump -u jimjones -p XxXJimmy

drop index causing error 1062?

2001-04-10 Thread Anthony DiPierro
Hi, This doesn't make any sense to me... For some reason, dropping an index is causing an error 1062. I would think this would only occur when creating an index or inserting an item... --- mysql> show index f