如何备份您的 mamp pro mysql 数据库?

发布于 2024-08-04 07:01:41 字数 95 浏览 1 评论 0原文

虽然我发现 mamp 的 apache 部分很容易备份,但每个人都在使用什么或者您如何执行 mysql 数据库的计划备份?将每个数据库一一导出会有点烦人。

谢谢

while I find the apache portion of mamp pretty easy to backup, what is everyone using or how are you performing a scheduled backup of your mysql databases? It would be kinda annoying to export each DB one by one.

thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谁的新欢旧爱 2024-08-11 07:01:41
/MAMP/Libray/bin/mysqldump 

如果您想让 cron 作业变得更容易,您可以将其添加到您的路径中。

/MAMP/Libray/bin/mysqldump 

You can add it to your path if you want to make it easier for your cron jobs.

白龙吟 2024-08-11 07:01:41

$mysqldump --所有数据库> mysql_dump.sql

$mysqldump --all-databases > mysql_dump.sql

她如夕阳 2024-08-11 07:01:41

您可以编写一个简单的 cron 来使用 mysqldump 导出您想要的所有数据库 然后使用 scp 或其他机制将它们移动到远程计算机进行存储。

You could write a simple cron that would export all the databases you wish using mysqldump and then move them to a remote machine for storage using scp or some other mechanism.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文