(假设docker容器的详细信息与此处不相关)
use admin
和db.auth('admin', 'admin#pwd')
Error: Authentication failed.
日志报告
... Supported SASL mechanisms requested for unknown user 'admin@admin'
... SASL SCRAM-SHA-1 authentication failed for admin on admin from client 127.0.0.1:50320 ; UserNotFound: Could not find user admin@
我要尝试:
db.auth(...)