xiayu 发表于 2018-10-28 09:49:46

MongoDB权限

MongoDB shell version: 1.8.2  connecting to: 127.0.0.1:30000/test
  >
  > use admin
  switched to db admin
  > show collections
  Sat Aug    6 11:16:45 uncaught exception: error: {
  "$err" : "unauthorized db:admin lock type:-1 client:127.0.0.1",
  "code" : 10057
  }
  switched to db admin
  > db.auth('admin','admin')
  1
  > show collections
  system.indexes
  system.users
  >

页: [1]
查看完整版本: MongoDB权限