Jump to content

Recommended Posts

I just copied a table in my database by exporting it and then simply replacing the table name before running the exported sql. I was surprised to see that the new table was maybe 5-6% smaller in total size (the rows and indices are the same) than the original one. Is there a chance of some data being lost? If so, is there any easy way that I can check this without checking every single value with a php script?

Link to comment
https://forums.phpfreaks.com/topic/165277-solved-copying-table-loss-of-data/
Share on other sites

When you delete rows, the empty space is left as is. If new data fits within the empty space, it is reused, but there is going to be some amount of unusable empty space in a database that has had a lot of delete operations on it.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.