C
C
Chvalov2017-08-17 22:39:42
MySQL
Chvalov, 2017-08-17 22:39:42

Why such huge MySQL table size after import?

When transferring MySQL database from server to server, a wild situation occurred.
MySQL 5.6 was running on the old server, the table was indexed - the exported version of the database occupied about 1GB.
On the new server, I put it off. MySQL 5.7 repositories and imported the database
But for some reason +13GB was added to the database - where did it come from?
JHrMnEk.png
For the sake of interest, using PHP, I copied the same table to another (SELECT & INSERT), and then indexed it, the size is 1.1 GB

product_types 3 - Table from import
product_types - copied table using php

Who can explain because of what such gain in volume of a DB after import?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-08-17
@BorisKorobkov

OPTIMIZE TABLE product_types3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question