44

following is the that I create dump from mysql database.

mysqldump -u root tempbkk > ttt.dump

but I want to create a dump that exclude one or more file while creating dump from database we select.What is the command for that ?

0

4 Answers 4

58

mysqldump -u user -p some_database > some_database_dump.sql

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

2 Comments

I can't see that this answers the question.
should be mysqldump -u user -p some_database > some_database_dump.sql
22

mysqldump can skip tables, you need the --ignore-table parameter. Check out the manual of mysqldump.

Comments

2
mysqldump -u <user> -p<password> --databases <dbname> -r <NameofBackup.sql>

2 Comments

Hi! Code only answers are considered low quality on SO; please consider adding an explanation to your code snippet as to improve it for OP and future visitors of the site. Thanks!
Anyway as far as I can see this does not answer the question.
1

Simply type this command mysqldump -u user -p database_name_in_database > name_of_file.sql

it will ask password for user. and there you go, your dumb file is ready. on same the location from where you run the command

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.