django,postgresql:将转储的数据库数据从一台机器移动到另一台机器

发布于 2024-09-05 19:11:53 字数 141 浏览 1 评论 0原文

我正在尝试将转储的数据从 postgresql 数据库移动到另一个数据库。然而,当syncdb在django上运行时,它会向数据库中插入一些值。当我想将转储插入数据库时​​,我遇到了冲突。将一些数据从一个 django 构建的数据库移动到另一个数据库的正确方法是什么?

I am trying to move dumped data from postgresql database to another. However, when syncdb is run on django, it inserts some values into the database. When I then want to insert the dump into the database, I get conflicts. What is the right way of moving some data from one django built database to another?

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

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

发布评论

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

评论(1

烟花肆意 2024-09-12 19:11:53

摆脱syncdb,而是执行正常的数据库转储并将其恢复到另一个数据库上

Get rid of syncdb, instead perform a normal database dump and restore it on the other database

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