News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

duplicate 83748499

Started by comesee, October 10, 2013, 06:08:16 PM

Previous topic - Next topic

comesee

duplicate 83748499


i have an issue with duplicate key.

how do i change or increase the id_topic from mediumint(8) to medium(12)

I used sql to change it. but because i have reach the maximum.

I want to change it to allow for more space... for people to post.

comesee

when i use sql to change it to to 12 on both smf_messages and id_topic

When i post i get an error of duplicate key 0.

I notice in the id topic column. All id_topic have become 0

So I use sql to change the id_topic to equal to id_msg

live627

How many topics do you have? Posts? Members?

margarett

What are you trying to do? Changing the (xx) "thing" makes no use. And for sure it won't solve a "duplicate" error issue...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ziycon

Can you explain what you did to get into this position in the first place?

Kindred

wow....   I hope you took a backup before you did that.   IDtopic != IDmessage.

and we have an admin with 50 MILLION posts who has not had to change the column type...

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

comesee

which website have 50 millon.

id_topic is set to just 8

Duplicate entry '83748499' for key 'prmary'
File: c:\htdocs\smf\Sources\Subs-Post.php
Line: 1967

Kindred

if you are getting a duplicate entry, then something went screwy on your site, and changing the filed setting won't fix a duplicate.

I suggest that you try repairing your database (from phpmyadmin) and then running the find and repair errors in the forum maintenance as well


(and the forum for the warriorcatsrpg hit 50 million a month or so ago)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

Quote from: comesee on October 11, 2013, 03:26:07 PM
id_topic is set to just 8
The number between "()", in that case 8, has NOTHING to do with the maximum value the field can support. That is determined by the type of integer, and only that:
http://dev.mysql.com/doc/refman/5.0/en/integer-types.html

You shouldn't have changed the ids. If you have a backup from before that, restore it...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

comesee


Kindred

Quote from: margarett on October 11, 2013, 06:46:58 PM
If you have a backup from before that, restore it...

Quote from: Kindred on October 11, 2013, 04:26:03 PM
I suggest that you try repairing your database (from phpmyadmin) and then running the find and repair errors in the forum maintenance as well


the backup is a better choice though
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ziycon

Quote from: comesee on November 10, 2013, 01:42:11 PM
someone help
You need to give some more information as to what exactly happened and what you did before we can help you further, being vague will not get you help any quicker!

comesee


margarett

I'm sorry, did you read the post above yours? Just saying "help" with no further info will do you no good...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: