开发者

create dump file from database in mysql

开发者 https://www.devze.com 2022-12-24 06:30 出处:网络
following is the that开发者_Python百科 I create dump from mysql database. mysqldump -u root tempbkk > ttt.dump

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

精彩评论

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

关注公众号