1.直接用shell 操作,手动敲 show tables; 连接 test 数据库 并且显示 test 下的所有 tables 2. 把 show tables 命令传递给 mongo test echo “show tables” | mongo test 即: echo “操作语句” | mongo dbName 3. 查询集合中的数据示例 查询 school 集合里的数据。