V
V
Vanya Huk2017-07-21 13:39:58
MySQL
Vanya Huk, 2017-07-21 13:39:58

How to import individual mysql tables from a large dump?

there is a 42gb dump, I need to import several tables from it, since the deployed database takes about 200gb, if I import the entire database, the server will crash

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Chernykh, 2017-07-25
@vanyahuk

try to pull the table out of the dump and then roll it into the database, it’s generally
good to switch to table-by- table dumps

F
Fortop, 2017-07-21
@Fortop

Well, cut the dump into separate pieces in a table way.
If you are under linux, then grep + sed are your friends and helpers.
As an example solution
https://stackoverflow.com/questions/5683367/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question