Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8679415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:58:00+00:00 2026-06-12T20:58:00+00:00

Thank you in advance for your help on this one. Here’s my issue: Table

  • 0

Thank you in advance for your help on this one.

Here’s my issue:

Table A had spam accounts that I deleted. The rows were like:
1, 2556, 2559, 2565, 2595, etc.

Am trying to import Table A into the empty Table B in the same database.
tables have different fields.

Table B declines the import because the insert is set to auto increment.
Mysql table B does not seem to want to skip rows.

I went to Table A and updated the rows to:

1, 2, 3,4,5…, 18

Now when I try to create a user in Table A using PyphAdmin with user_id value of NULL,
the id i get is 2596. Mysql still remembers the old incrementing sequence.
How can I get Mysql table to auto-increment based on the previous row so the new
id will be 19 ?

The mysql import file is encrypted in phpshield so I dont see what’s
going on and has no way to edit it. But I assume this is what is happening after I ruled out all other possibilities.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:58:01+00:00Added an answer on June 12, 2026 at 8:58 pm
    1. The field must be primary key – PRIMARY KEY (id)
    2. The field must be AUTO_INCREMENT
    3. Reset table’s autoincrement value.

    For example –

    CREATE TABLE table1(
      id INT(11) NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (id)
    );
    

    Set new autoincrement value –

    ALTER TABLE table1 AUTO_INCREMENT = 19;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, thanks in advance for your help. This issue is driving me nuts.
This one has me pretty rattled so I thank you in advance for your
and thanks in advance for your help! Here's my situation: I have a set
Thanks for your help on this one. I am pulling a NSDictionary from a
Thanks in advance for your help. I have a need within an application to
Thanks in advance for your help experts. I want to be able to copy
Hi thanks in advance for your help. I'm just getting started learning Python and
Greetings and thank you in advance for the help. I created a user control
First, a thank you in advance. Second, this is my first post so apologies
i have very serious problem if any tech expert can help...thank you in advance..

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.