1.链接mongo
/path_to_mongo/bin/mongo MongoDB shell version: 2.6.11 connecting to: test > use logs switched to db logs > db.auth("user","123456") 1 >
2.查看有collections
show collections