django,postgresql:将转储的数据库数据从一台机器移动到另一台机器
我正在尝试将转储的数据从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
摆脱syncdb,而是执行正常的数据库转储并将其恢复到另一个数据库上
Get rid of syncdb, instead perform a normal database dump and restore it on the other database