开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜