Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Linux 服务器上。我的 MongoDB 数据库存储在那里。现在,如果我想从另一台机器上删除数据库,比如说我的开发机器,那么我创建了这些步骤,但不适合我。
创建一个 delete.sh 文件
#!usr/bin/env mongo #instance Ip assume: mongo 12.122.12.12:27017/tempDatabase --eval "db.dropDatabase"
但我无法删除数据库。知道我在哪里做错了。任何互动都非常感谢