First, download and install MongoDBMongoDB Download website link:http://www.mongodb.org/downloadsSpecific installation Steps Tutorial:http://www.shouce.ren/api/view/a/6191(PS: The link to the MongoDB installation explanation is more detailed and easy to understand. Installation Tutorial link is I found from the manual online, the following summary of knowledge points is also I learn from the part of the induction, interested students may wish to collect ~) Second,MongoDB visualization tool downl
Tags: password user name account authentication roleBackground: The original use of MongoDB does not use the account password authentication method to log in, the use of non-authentication mode; Now it needs to be configured to log in and use as an account password, the configuration steps are as follows:First, configure normal user rights1. Connect to the MongoDB server using Mongobooster2. Execute the following script to create an administrative user's account AAUse admin
db.createuser ({
User
Tags: Read engine tool boost uses the client storage engine to support classThe difference between MongoDB high version and low version One. MongoDB Engine: MONGODB 3.0 supports user-defined storage engines, which users can configure using the Mmapv1 or Wiredtiger storage engine. The Wiredtiger storage engine, which was opened by default after version 3.2 , was previously used by the MMAPV1 storage engine. and the data file format generated by the 2 storage engines is incompatible. That is, the
MongoDB Learning (2) Visual Interface and mongodb Visualization1. Installation visual interface 1. mongobooster installation and configuration 1. Download and install
: Https://nosqlbooster.com/downloads
After the download is complete, click Install:
After the installation is complete, the following page is displayed:
2. Click the create link:
3. Click the Test Connection Test link:
4. Test OK and click Save Connect to link to the local database:
2.
Mongod listening TCP port, the default port value is 27017;
--host : Specifies the server that Mongod runs, and if this parameter is not specified, MONGO attempts to connect to a Mongod instance that is running on-premises (localhost);
--username/-u --password/-p : Specify the account and password to access the MongoDB database, only when the authentication is passed, the user can access the database;
--authenticationdatabase : Specifies the database in which the user is creat
this time.
Host:localhost
port:27017
Database: Test
Collection:customer (Simple class name for domain Class)
2.4, Application.properties1 #mongodb note:mongo3.x would not use the host and port,only use Uri2 spring.data.mongodb.host=192.168.21.543 spring.data.mong odb.port=270174 Spring.data.mongodb.uri=mongodb://192.168.21.54:27017/myfirstmongodbNote : If you need to specify host, port, database, you need to configure the above information in the Application.properties
Tags: password pass connection localhost set conf effect Read testRequirements: We need to create a new two database on a mongodb, each database user name and password is not the same, the rationale is that we directly set the admin, you can control all the database, but used to always feel a variety of problems, is not very familiar with MongoDB, So directly to the different database set user name and password, can achieve the desired effect. You cannot see the database when you test with
First, the installation of Visual Interface 1, Mongobooster installation and configuration 1, download and install: Https://nosqlbooster.com/downloadsAfter the download is complete, click Install directly:Installation Complete Popup interface:2. Click Create Link:3. Click the test Connection Link:4. Click Save Connect link to the local database after testing OK:2, write the operation statement in the Mongobooster1. View Collections2. Add a new piece
2018-06-14 15:32, I mistakenly deleted the table of the MongoDB cluster on the line.Ok,mongobooster is a stop button. Click Stop to Help. But, can not stop at all, every refresh will see the form in 1M decreasing speed, every refresh once dizziness will aggravate the mind of the rapid thinking solutionCourse:1. Find ops and take backup. Looking for a long time unexpectedly did not have a recent backup, the most recent is the beginning of May, my God,
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.