create dump file from database in mysql
following is the that开发者_Python百科 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 ?
mysqldump -u user -p some_database > some_database_dump.sql
mysqldump
can skip tables, you need the --ignore-table
parameter. Check out the manual of mysqldump
.
mysqldump -u <user> -p<password> --databases <dbname> -r <NameofBackup.sql>
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
精彩评论