Jump to content


SQL Help!


3 replies to this topic

#1 α∂αмяoss

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 2,102 posts
  • Gender:Male
  • Location:$_SERVER['REMOTE_ADDR']
  • Interests:football, Manchester Utd., coding, web developement, business, girls and warcraft.

Posted 10 August 2006 - 08:30 AM

Hey folks,

I need help with a SQL error i'm getting from my forums. The error is:
mySQL query error: INSERT INTO ibf_admin_permission_keys (perm_key,perm_main,perm_child,perm_bit) VALUES('tools:admin:recache','tools','admin','recache')

SQL error: Duplicate entry 'tools:admin:recache' for key 1
SQL error code: 
Date: Thursday 10th of August 2006 09:22:09 AM
How do i fix this?

Thanks in advance,
Adam Ross

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 10 August 2006 - 08:33 AM

You might be better off on the IPB support forums. I can tell you what the error means but i don't know what has gone wrong :)

It means the script is trying to insert something already exists (well, the key exists anyway).

Thats all i can say, you'll have to wait for an IPB nerd lol :D

#3 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 16 August 2006 - 05:35 PM

it means theres a field in your database that is set to only accept unique values, your trying to insert a value that already exists in another field.... if that makes sense :D

#4 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 16 August 2006 - 06:19 PM

Just set the ID field as primary key and set as Auto_Increment.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users