A
A
Arman2016-08-29 12:58:50
MySQL
Arman, 2016-08-29 12:58:50

How to take a small snapshot of the database (MySQL) from the combat server?

DD.
There is a combat server with 20-30 tables and GB of data in them, some tables have 300-400 thousand records.
You need to raise the site on the local with more or less up-to-date data. Those. for example:
SELECT * FROM all_tables ORDER BY `id` DESC LIMIT $limit
Is there any ready-made solution where you can specify database access, record limits, and which script will look at what tables there are and dump from all tables by $limit - records?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-08-29
@Arik

mysqldump, here is an example for your task
stackoverflow.com/questions/135835/limiting-the-nu... -

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question