we have 40 databases in our server.
we want to take 36 databases backup using mysqldump.
how can i ignore remainig 4 databases in mysqldump command.
there is any option for mysqldump to ignore databases for backup in mysql
i know general mysqldump command but it is very lengthy .i want to ignore only 4 databases and need to take remaining dbs backup.
|
|
||||
|
|
|
Back on Dec 16, 2011, I answered the question How do you mysqldump specific table(s)? I collected all tables not including a certain set of table names. Using the same principles, you could have collect all the database names from the metadata table
All you need to do is put the databases you do not want mysqldump'd into Give it a Try !!! |
|||
|
|
|
I don't think it is possible, but you can try these solution which you will have to type the names of all the databases you want to dump.
Let me know if the solution helps. |
||||
|
|
Alternatively, you can look at the following links; Mysqldump Ignore Database Option
A few hacks to simulate mysqldump --ignore-database Implementing mysqldump –ignore-database Let me know if the solution helps. Goodluck! |
|||||
|
|