Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-11 11:57:26

Mr. Smith
Member
From: Denmark
Registered: 2006-11-10
Posts: 56

MySQL: "#1062 - Duplicate entry '14' for key 1"

I have just downloaded the database from my remote site, and I now want to import this database into my local phpMyAdmin.

Usually it’s very easy, but this time I get an error message saying “#1062 – Duplicate entry ‘14’ for key 1”.

I have no idea what this means, do you? I haven’t personally made any changes to the database at all, I’ve only been working in Textpattern’s back end.

Any ideas?


Textpattern n00b

Offline

#2 2008-02-11 12:03:59

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

It means that your local database already had Textpattern tables in it before you imported. You’ll need to either drop/empty them, or create another database to use (depending on what you want done with the original data).

Offline

#3 2008-02-11 13:15:57

Mr. Smith
Member
From: Denmark
Registered: 2006-11-10
Posts: 56

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

Thank you, Mary! – I guess it has been to long since that I did this the last time, as I don’t recall having to drop/empty any tables earlier.

Another (silly) question: After copying the textpattern files from my remote site to my local computer, Textpattern’s pre-flight check gives me a huge list of Textpattern files that have been modified. I just downloaded the files directly via ftp, isn’t that the right way to do it? The site works fine though.


Textpattern n00b

Offline

#4 2008-02-11 15:47:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

Is the checksums file the same as the one on your remote site?

Offline

#5 2008-02-11 17:09:54

Mr. Smith
Member
From: Denmark
Registered: 2006-11-10
Posts: 56

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

Yes, both the database and all the files on my computer are exact copies of the database and files from the remote site.

I am going to upgrade to 4.0.6, maybe that will fix it.


Textpattern n00b

Offline

#6 2008-02-11 17:18:56

Mr. Smith
Member
From: Denmark
Registered: 2006-11-10
Posts: 56

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

Yes, upgrading to 4.0.6 fixed it. But for some reason the “Logout” is aligned to the left now. :-) But it works, it’s alive!

I really like that updating Textpattern is so easy.

Last edited by Mr. Smith (2008-02-11 17:24:38)


Textpattern n00b

Offline

#7 2008-02-11 17:50:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

Mr. Smith wrote:

for some reason the “Logout” is aligned to the left now.

Just refresh the page :)

Offline

#8 2008-02-11 18:04:27

Mr. Smith
Member
From: Denmark
Registered: 2006-11-10
Posts: 56

Re: MySQL: "#1062 - Duplicate entry '14' for key 1"

You were right. But you guys are most of the time….. ;-)


Textpattern n00b

Offline

Board footer

Powered by FluxBB