mongo的--authenticationDatabase admin 作用
mongo的--authenticationDatabase admin选项是用于指定用于身份验证的数据库。在使用mongo shell或其他客户端连接到MongoDB时,如果需要使用用户名/密码进行身份验证,则必须指定要用于身份验证的数据库。默认情况下,身份验证数据库为admin,因此如果未指定--authenticationDatabase选项,则将使用admin作为身份验证数据库。
原文地址: https://www.cveoy.top/t/topic/bqg1 著作权归作者所有。请勿转载和采集!