[英]create dump file from database in mysql
following is the that I create dump from mysql database.以下是我从 mysql 数据库创建转储。
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 root some_database > some_database_dump.sql
mysqldump
can skip tables, you need the --ignore-table
parameter. mysqldump
可以跳过表,需要--ignore-table
参数。 Check out the manual of mysqldump
.查看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
只需键入此命令mysqldump -u user -p database_name_in_database > name_of_file.sql
it will ask password for user
.它会询问user
密码。 and there you go, your dumb file is ready.好了,你的哑文件已经准备好了。 on same the location from where you run the command与您运行命令的位置相同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.