mysql 转储、Windows、每个数据库的单独文件、所有数据库选项
有人有关于如何使用 mysql dump 转储所有数据库的示例吗?可能每个数据库都有一个新文件?
我正在使用以下命令:
mysqldump -u root -p pw --all-databases > backup.sql;
它返回“您的 SQL 语法中有错误”;
谢谢!
Does anybody have an example on how to dump all databases uses mysql dump? And possible all a new file for each DB?
I'm using the follow command:
mysqldump -u root -p pw --all-databases > backup.sql;
It's returning with "You have an error in your SQL sytax";
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的命令有错误,
-p
后面应该没有空格,就像
我不确定你有多少数据库一样,通常你可以这样做:-
There is an error in your command, it should be no space after
-p
,like
I not sure how many database you have, usually you can do this :-