setParameter=enableLocalhostAuthBypass=1,設置無效
"errmsg" : "not authorized on admin to execute command { listDatabases: 1.0 }", 我照視頻來學 設置了setParameter=enableLocalhostAuthBypass=1,然后mongo localhost:28001連接成功,執行show dbs命令時怎么提示如上面的無權錯誤 我的mongodb版本3.4.4,安裝在centos7下,請老師給予回復
2017-08-22
我看視頻上是 使用localhost 登錄的,如果你使用的是本機ip的話,是不行的!不知道能不能幫助你??!