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?
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:As you see in the example:
INSERT. (the next user will get id5)