(Update Tools: XunFeng) 更新 mongodb auth 未生效问题

This commit is contained in:
Medicean 2016-12-19 22:01:26 +08:00
parent 3630c80194
commit 647cdb69ac

View File

@ -1,3 +1,4 @@
use xunfeng
db.createUser({user:'scan',pwd:'scanlol66',roles:[{role:'dbOwner',db:'xunfeng'}]})
exit
db.auth('scan', 'scanlol66')
exit