1.切换数据库use DATABASE_NAME
2.查看数据库show dbs
3.创建索引db.collection.createIndex(keys, options)示例:
db.grids.createIndex({"zoom_level": 1, "tile_column": 1, "tile_row": 1})4.查看索引db.COLLECTION_NAME.getIndexes()示例:db.grids.getIndexes()