Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-12-2008, 07:16 PM
captainron19 captainron19 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default Mysql Error

Today the VPS has gone down numerous times. When it went back up one of my forums produced an error every time someone tried to post a new message in the forum. I run several forums but it is only happening to one.

The error reads...

MySQL Error : Duplicate entry '67198' for key 1
Error Number : 1062

Someone told me it has to do with Making sure the autoincrement value is higher than the highest used postid. but that is alll greek to me

Any ideas?
Reply With Quote
  #2  
Old 06-12-2008, 07:30 PM
seoguru's Avatar
seoguru seoguru is offline
SEO Guru
 
Join Date: Sep 2007
Posts: 126
Default

Check 'Announcements' section.
P.S. You'll find the answer.
Reply With Quote
  #3  
Old 06-12-2008, 07:43 PM
captainron19 captainron19 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default

That was at 10:30 this morning. The server was back up running since then
Reply With Quote
  #4  
Old 06-13-2008, 06:49 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 2,020
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by captainron19 View Post
Today the VPS has gone down numerous times. When it went back up one of my forums produced an error every time someone tried to post a new message in the forum. I run several forums but it is only happening to one.

The error reads...

MySQL Error : Duplicate entry '67198' for key 1
Error Number : 1062

Someone told me it has to do with Making sure the autoincrement value is higher than the highest used postid. but that is alll greek to me

Any ideas?
I've spoken with support, they mentioned that you got this resolved. Want to enlighten us on what / how you fixed this?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #5  
Old 06-14-2008, 08:16 AM
captainron19 captainron19 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 28
Default

I had to go into cpanel - myphpAdmin and into the databse for that forum and go into th epost table. Form there I had to find the highest post id being used (in this case 67198) - same as in error code.

I then had to go into the operations tab of the post table and set the auto incriment to 1 digit higher than the highest post id so I set the auto incriment at 67199 but it didnt resolve the problem. On a guess I went one higher 67200 and then everything went back to working.
Reply With Quote
Reply

Tags
error, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade MySQL From 4.2.2 To 5.x: Do I Dare? itwasntme Virtual Private Servers (VPS) 4 09-22-2008 11:05 AM
How To: MySQL Error "Access denied for user..." lnxcode Virtual Private Servers (VPS) 3 07-10-2008 10:42 PM
Apache-WHM Parsing Error (1 change per session) marcOpolo Virtual Private Servers (VPS) 0 01-29-2008 08:26 PM
Cannot Allocate Memory Error itwasntme Virtual Private Servers (VPS) 10 10-26-2007 03:18 PM
CGI error domz Shared Hosting 3 10-04-2007 04:10 AM


All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.