The pit Daddy MongoDB

Source: Internet
Author: User
Tags auth
Can't connect remotely?! Certification failed?!

In order to improve the security of remote access, according to the description of MongoDB official website, increased user authentication, local testing through, however, remote access is still alive, whether it is Spring-data-mongo, or Mongovue client, Or Ubuntu under the mongo-clients, are reported Auth failed, is my character have a problem?
Here's a look at the software environment:
1, MongoDB is the 3.0.3 version, known as performance improvement of 95% not only to increase the efficiency of 7 to 10 times times and increase the data compression rate of 80%, but also reduce operation and maintenance costs 95%.
2, because the spring uses the 3.2,spring-data-mongo 1.5.5 version, for Mongo-java-driver for 2.12.5
3. Windows client is using MongoVUE-1.6.9
4, Ubuntu under the simple test is installed through the Apt-get mongo-clients, version 2.4.9
Before opening auth, everything is normal, the data can read and write, open auth, but also only reported Auth failed, all built-in roles added, or not. The middle of all kinds of toss over, and finally I was on another machine on the deployment of the same version of MongoDB, and then the MONGO command remote connection, incredibly pass!!! It's not backwards compatible!
I take a go, because the Mongo-java-driver version is not compatible, to upgrade means that Spring-data-mongo to more than 1.7 version, the spring version to rise to 4.0, think or forget




The pit Daddy MongoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.