用客户端连接mongodb时,提示Invalid credential for database 'test'.或者未将对象引用设置到对象实例
解决方法:
将username、password、databse去掉,Test一下就可以了