I have an MySQL instance (an innodb cluster server, put in standalone, so it should not really be important). And I have a couple of servers I need to do this on, so I would like to get to the bottom of this one.
Secondly, im aware that the mysql and mysqldump might not be the best tools for this matter, but for now this is what we have/use ![]()
So the current server currently has 16G of memory, and im trying to import an compressed dump fie of ~75G. I expect the imported result would be somethinig like ~500G.
Currently its deadly simple
gunzip -c dump.sql.gz |mysql -uuser -p
After some time(1h), all the memory of the server is consumed, and the import is killed by OOM. The innodb_buffer_pool_size is set to ~75% of the total memory of the server, which is 12G.
Now i’ve restarted it again, but setting the innodb_buffer_pool_size to 1G, because this worked on another import (only 4G in total memory here though).
Any suggestions for improvements ?