SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Need to help someone with MySQL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mikebird
Aged Yak Warrior

United Kingdom
529 Posts

Posted - 08/12/2013 :  06:55:06  Show Profile  Reply with Quote
I have a server running vbulletin and it had a power outage this morning, I now have a situation where the server is reporting the following:

Database error in vBulletin 3.8.2:

Invalid SQL:

REPLACE INTO search
(userid, ipaddress, personal,
searchuser, forumchoice,
sortby, sortorder, searchtime,
showposts, orderedids, dateline,
displayterms, searchhash, completed)
VALUES
(4, '86.155.201.22', 1,
'rf860', '',
'post.dateline', 'DESC', 0.23376,
1, (Removed some code here to be able to post this)


Edited by - mikebird on 08/12/2013 07:35:28

bandi
Flowing Fount of Yak Knowledge

India
2206 Posts

Posted - 08/12/2013 :  07:04:02  Show Profile  Reply with Quote
MySQL Error : Duplicate entry '21080356' for key 'PRIMARY'
here Error message is self exploratory....
You are trying to insert 21080356 to primary key column which is already exist in the table...
In your code we haven't seen 21080356 value... I think some where else that error caused...

Note: Any way this is SQL Server forum. So you can get quick response by posting in the relevant form like www.dbforums.com

--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000