1

I have 6 tables named as table1, table2, table3, table4, table5, table6 and each table contain a field status . Before taking the backup i want to check status='N' in each tables. I have the following code

mysqldump -t -u root -p dbname table1 -w"Status = 'N'" >/backup/test.sql;

this code help only for one table and create 6 file. How can i get the single dump file contain the details of this 6 tables

1
  • Not exactly actually tables like tableA, tableB, tableC, tableD, tableE, tableF. this is the correct scenario Commented Jun 26, 2014 at 11:03

1 Answer 1

1

Just try mysqldump -t -u root -p dbname table1 table2 table3 table4 table5 table6 -w"Status = 'N'" >/backup/test.sql;

I think it will meet your requirement..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.