在数据目录下,使用 mongoimport 命令把 areas.dat 数据插入到 student 库中的 areas 集合中去 mongoimport -d student -c areas areas.dat