1. 程式人生 > >連接mongodb Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'test'.

連接mongodb Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'test'.

password alt red god 對象引用 客戶 技術分享 database word

用客戶端連接mongodb時,提示Invalid credential for database ‘test‘.或者未將對象引用設置到對象實例

解決方法:

技術分享圖片

將username、password、databse去掉,Test一下就可以了

連接mongodb Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'test'.