查看所有数据库 > show dbs admin (empty) local 0.078GB > admin和管理相关, admin和local数据库不要轻易动 选择库 > use test #如果没有则创建 switched to db test > > db #查看当前位于哪个数据库 test > > > show collections > db.help()请求帮助 > db.help() DB methods: db.adminComm…
MongoDB 入门命令 查看当前数据库 > show dbs admin 0.000GB config 0.000GB local 0.000GB > -- use databaseName 选库 > use test switched to db test > -- show tables/collections 查看当前库下的collection > show tables > show collections > 基础操作 Mongodb的库是隐式创建,你…