深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 719|回复: 0
打印 上一主题 下一主题

mysql丢失comment注释的went

[复制链接]

800

主题

1379

帖子

7708

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7708
跳转到指定楼层
楼主
发表于 2021-5-28 18:39:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
-c, --comments      Preserve comments. Send comments to the server. The
                     default is --skip-comments (discard comments), enable
                     with --comments.

mysql -u root --password=xxx  --comment < test.sql

加上 --comment选项.

详见:
--comments, -i

Write additional information in the dump file such as program version, server version, and host. This option is enabled by default. To suppress this additional information, use --skip-comments.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 19:30 , Processed in 0.039306 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表