473,410 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Error getting when insert data after truncate the table in mysql

16
Error getting when i insert data after truncate the table.once more i truncate that table data is going otherwise it will show the error message.
this is the error message i am getting .."Failed to read-auto increment storage engine."

Can anyone help to sove this,pls reply as soon as possible.

Thanks in advance
Jul 6 '10 #1
1 2379
TheServant
1,168 Expert 1GB
Never seen this before but I found the following:
The problem happens when the Auto-Increment value of a table grows beyond the limit.

Just run this SQL query in MySQL to fix the bug.

Expand|Select|Wrap|Line Numbers
  1. ALTER TABLE `table_name`  AUTO_INCREMENT =1
Table_name is the name of the table where you found the error while inserting data into. Don’t bother about the Auto_Increment value even if you have records in your table.
Jul 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jj | last post by:
This is strange, I've got an Access database developed that transfers records to and from a remote database via Linked Tables/ODBC. It works fine when connected to the development server. Same...
0
by: crypto_solid via AccessMonster.com | last post by:
I have been using a SQL database with a VB5 frontend for about 5 years. Works well. Unfortunately I don't have access to the source code. I was tasked with implementing a "job entry" application...
5
by: ronin 47th | last post by:
Hi group, In one of the books 'Gurus Guide to Transact SQL' i found this info: ------------------------------------------------------------ TRUNCATE TABLE empties a table without logging row...
1
by: pashi | last post by:
Hi, I am having two tables Stock and OrderIssue as follow Stock ItemID, ItemName , Qty , ...
1
by: mahitha1 | last post by:
i have been trying to insert data into database from an html form which contain dropdown menus and text boxes in php using mysql as database.but iam getting the message that record has been added but...
0
by: hasankacd | last post by:
hi, Im using vb.net programme with db2. when I insert a record the following error comes even update the record. But I can retrieve the data with out any problem. But the particular query can...
0
by: troydixon | last post by:
Hello, I am new at this, and have been trying to insert data into a table by using the footer of a gridview (which I dont like) or by using a detials view on the same page that is doing the...
1
by: ghjk | last post by:
I have two questions. 1.I have to enter values to database through php. When I enter incorrect value, it gives the error message. But i want to give it as a pop up message. how can i do that? 2....
15
by: r90slash6 | last post by:
Hi Guys, I have code for click event on an Access form that opens an Excel file, refreshes data of a pivot table on the active worksheet and then filters records based on a criteria. Everything...
2
by: pavelcc | last post by:
I need to insert data into a table after validating that the data doesn't already exist on the table. In addition to that I need to update data if there are any changes. I got the insert part...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.