Dump database and re-import under a new name

自古美人都是妖i 提交于 2021-02-07 08:13:22

问题


If I need to duplicate the contents of a database "foo" into a second database "bar" with MySQL, I would usually do something like this:

mysqldump -u root foo > foo.sql
mysql -u root -e "CREATE DATABASE bar;"
mysql -u root bar < foo.sql

What would be the equivalent procedure with ArangoDB?


回答1:


Try to use arangodump and arangorestore tools, for example:

arangodump --server.database myDatabase1 --output-directory "myDumpFolder"
arangorestore --server.database myDatabase2 --input-directory "myDumpFolder"


来源:https://stackoverflow.com/questions/27827073/dump-database-and-re-import-under-a-new-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!