SQL Error Plz Help
#1

when player joined the server

it show in server_log

Error in mysql_query: Duplicate entry '21873' for key 1

what is this and how to fix it ??
Reply
#2

I'm guessing means you have two users with ID 21873. Did you add/change anything in the MySQL database that caused this?
Reply
#3

In my server it has only 1817 user
Reply
#4

But where it show? when user connect?
Reply
#5

[16:33:17] [join] BaBy_Mio has joined the server
[16:33:21] Error in mysql_query: Duplicate entry '21873' for key 1
[16:33:21] BaBy_Mio has logged in.


like this
Reply
#6

anyone can help
Reply
#7

hmm maybe SQL is bugged?
Reply
#8

It means you have two rows with identical values in a column with the primary key set to it. Most probably the ID column.

To fix the issue, you need to change the duplicate ID or else remove it from the table.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)