码迷,mamicode.com
首页 > 数据库 > 详细

mysql5.7上使用mysqldump

时间:2019-11-23 23:57:28      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:col   mysqld   you   wan   code   font   master   word   command   

# 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

标签:col   mysqld   you   wan   code   font   master   word   command   

原文地址:https://www.cnblogs.com/igoodful/p/11920724.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!