导入/导出 img 文件的不良情况 - mysql 数据库

发布于 2024-09-25 00:30:41 字数 1536 浏览 1 评论 0原文

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

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

发布评论

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

评论(1

§普罗旺斯的薰衣草 2024-10-02 00:30:41

MySQL Workbench(像啤酒一样免费,像演讲一样免费)具有转储和恢复功能。

http://dev.mysql.com /doc/workbench/en/wb-manage-server-data-dump-tab.html

Phpmyadmin 和其他管理工具也具有这些功能,但基于 Web 的工具可能无法正确处理如此大的表。

将旧服务器中的大表转储到桌面计算机上的文件中。将其恢复到新服务器。可能需要过夜。所以呢?你只需要做一次(除非你第一次搞砸了)。附带好处:您将拥有旧桌子的备份,可以将其放入 DVD-RW 中并放入办公桌抽屉中。

您可能必须通过一次选择几百万行来对转储过程进行分段。这可能是个好主意,因为这样您就可以在进程崩溃时重新启动该进程。

有一些工具(sqlyog)也可以将数据从一台服务器直接复制到另一台服务器。

快乐的数据争论。

MySQL Workbench (free as in beer, free as in speech) has dump and restore features.

http://dev.mysql.com/doc/workbench/en/wb-manage-server-data-dump-tab.html

Phpmyadmin and other admin tools also have those features, but web-based tools may not handle such a large table properly.

Dump your big table from your old server to a file on your desktop machine. Restore it to the new server. It may take overnight. So what? You only have to do it once (unless you mess it up the first time). Side benefit: you'll have a backup of your old table that you can put onto a DVD-RW and throw in your desk drawer.

You might have to segment the dump process by selecting rows a few million at a time. That's probably a good idea, because then you can restart the process if it crashes.

There are some tools (sqlyog) that can copy data from one server to another directly, as well.

Happy data wrangling.

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