在命令行中使用 MongoDB,你需要使用 mongo shell。首先,确保你的 MongoDB 服务器正在运行,然后打开一个终端并键入 mongo 来启动 shell。 以下是一些基本的 mongo shell 命令: show dbs: 列出所有数据库..