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 7888793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:55:36+00:00 2026-06-03T05:55:36+00:00

My MySQL table is something like: userid(AI,PRIMARY) name password 1 aa dfsdfsdfds 2 ioi

  • 0

My MySQL table is something like:

userid(AI,PRIMARY)    name    password
1                     aa       dfsdfsdfds
2                     ioi      kjkjkjkjk
(3) user deleted his account
4                     ghghj    jhjhkhj

and there is another table with there info

userid( will be userid from above table)    address    phone
1                                            sfdsfds   9999999
2                                            dfsdfdsf   333333
3 (deleted)
4                                            sdfdsf     999999

When I will backup and restore the data, what will happen what will be my table data of table 1?

  • 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-03T05:55:37+00:00Added an answer on June 3, 2026 at 5:55 am

    When you export your data (i.e. using mysqldump), all your keys (and their value) are exported as they are. The backup basically looks like this:

    CREATE TABLE yourtable (
        userid INT(10) unsigned NOT NULL auto_increment,
        name VARCHAR(255) NOT NULL,
        password VARCHAR(255) NOT NULL,
        PRIMARY KEY (userid)
    ) AUTO_INCREMENT=5;
    INSERT INTO TABLE yourtable ( userid, name, password )
    VALUES 
    (1, 'aa', 'dfsdfsdfds'),
    (2, 'ioi', 'kjkjkjkjk'),
    (4, 'ghghj', 'jhjhkhj')
    

    As you see in the example:

    • your keys are being fully backuped and restored
    • MySQL remembers the last auto-increment value and returns to that value on the next INSERT. (the next user will get id 5)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL table that looks something like this: +-----+------------+ | id |
Let's say I have a MySQL table that is something like this: software table:
I have a MySQL database table called Participant that looks something like this: (idParticipant)
I want to create a table, which name something like : name_thisyear_thisweekofyear, e.g ->
I have a post model (mysql table), and the structure is something like: id,
I have a chat user entry in a MySql table - id (primary key,
I have two MySQL tables something like this: tool_owners: tool_owners_id | user_id | ...
My sql table is something like (message,created) I want to select those rows which
Right now I have a mysql database with a table userphone(id, phone, type,userid) and
Assume the following in MySQL: CREATE TABLE users ( id integer auto_increment primary key,

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.