mysql5.7上使用mysqldump

Posted igoodful

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql5.7上使用mysqldump相关的知识,希望对你有一定的参考价值。

# mysqldump -utmp -ptmp -h127.0.0.1 -P3307   --single-transaction --master-data=2  --all-databases > 3307_20191123.sql
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, 
even those that changed suppressed parts of the database. If you don
t want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.
#
mysqldump -utmp -ptmp -h127.0.0.1 -P3307   --single-transaction --master-data=2  --all-databases > 3307_20191123.sql

以上是关于mysql5.7上使用mysqldump的主要内容,如果未能解决你的问题,请参考以下文章

MysqL5.7在使用mysqldump命令备份数据库报错:mysqldump: [Warning] Using a password on the command line interface ca

MySQL5.7.18 备份Mysqldump,mysqlpump,xtrabackup,innobackupex 全量,增量备份,数据导入导出

Mysql5.7.20安装文档

mysql5.7逻辑备份工具mysqlpump

mysqldump 逻辑备份搭建备库

mysqldump 逻辑备份搭建备库