Home Database Mysql Tutorial Recommended source code courseware for Black Horse Cloud Classroom mongodb practical video

Recommended source code courseware for Black Horse Cloud Classroom mongodb practical video

Dec 04, 2017 am 11:08 AM
mongodb Source code video

MongoDB is written in C++ language and is an open source database system based on distributed file storage. "Black Horse Cloud Classroom MongoDB Practical Video Tutorial" ensures the completeness of knowledge points to a large extent. The starting point of the video is carefully designed and recorded for students who have certain database knowledge. Ensure that students can accept and understand the details of knowledge to a greater extent.

Recommended source code courseware for Black Horse Cloud Classroom mongodb practical video

Video playback address: http://www.php.cn/course/519.html

The teacher’s teaching style:

is vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; a well-placed humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and alertness.

The more difficult point in this video is to manage the mongodb account permissions:

MongoDB does not have permission verification by default. But in a production environment, it is very unsafe without permission control.

Without going into too many concepts in detail, let’s create two typical accounts directly:

Super administrator, similar to the sa account of sql server or the root account of mysql

Read and write permission account for a single database

Create super administrator

When the permission verification mechanism is not turned on, we use mongo to open the MongoDB shell in the "Command Indicator" window.

Use the "use" command to switch to the admin database. MongoDB uses the system.users collection of admin to save user information.

1

2

3

> use admin

switched to db admin

>

Copy after login

Use the db.createUser method to create a user. For specific instructions, please refer to the official website document

1

2

3

4

5

6

7

> db.createUser(...    {...      user: "sa",...      pwd: "123",...      roles: [ { role: "__system", db: "admin" } ]...    }...  )

Successfully added user: {        "user" : "sa",        "roles" : [

                {                        "role" : "__system",                        "db" : "admin"

                }

        ]

}

>

Copy after login

In this way we create an account :sa, password: 123, has the permissions of the "__system" role. For specific instructions on the "__system" role, please refer to the official website document

Warning: Do not assign accounts with the "__system" role to system programs.



Here we also recommend downloading source code resources: http://www.php.cn /xiazai/learn/2073

The resources share video courseware and ppt with you:

  1. corresponding notes+PPT+template+source code download address

  2. 黑马云Classroommongodbpractical source code courseware

The above is the detailed content of Recommended source code courseware for Black Horse Cloud Classroom mongodb practical video. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

A comprehensive guide to learning and applying golang framework source code A comprehensive guide to learning and applying golang framework source code Jun 01, 2024 pm 10:31 PM

By understanding the Golang framework source code, developers can master the essence of the language and expand the framework's functions. First, get the source code and become familiar with its directory structure. Second, read the code, trace the execution flow, and understand dependencies. Practical examples show how to apply this knowledge: create custom middleware and extend the routing system. Best practices include learning step-by-step, avoiding mindless copy-pasting, utilizing tools, and referring to online resources.

iPhone camera flickers/flickers in room lights: fix iPhone camera flickers/flickers in room lights: fix Jun 06, 2024 pm 02:28 PM

Does your iPhone camera flicker or flicker too much in indoor lights? Videos you shoot with your iPhone won't look good because the lights will be on. The flicker you see on your video is because of the difference in refresh rates. This is not normal and there are ways to fix this. This fix will help you solve the continuous flickering or flickering effect in iPhone videos. Fix – Change Video Output Format The reason behind this phenomenon is the apparent difference between the refresh rate of the object and the camera lens. Usually, if you use iPhone to record your screen, the video will flicker or flicker a lot. However, if you record a normal video, it shouldn't flicker. This phenomenon is mainly due to the mismatch between the refresh rate of the screen and the frame rate of the camera. The screen refresh rate is usually

Golang framework source code analysis and optimization Golang framework source code analysis and optimization Jun 02, 2024 pm 04:54 PM

This article explores the source code analysis and optimization of the Go framework. The source code structure includes four main packages, involving core framework logic, request context, data binding and response rendering. Optimization techniques include: 1. Use routing trees to optimize route processing to significantly increase route lookup speed. 2. Use middleware for caching and compression to reduce server load and response time. 3. Avoid performing time-consuming operations in callbacks to maintain high responsiveness. 4. Enable logging and analyze slow requests to identify performance bottlenecks. 5. Update framework versions regularly to take advantage of the latest performance improvements.

What is the use of net4.0 What is the use of net4.0 May 10, 2024 am 01:09 AM

.NET 4.0 is used to create a variety of applications and it provides application developers with rich features including: object-oriented programming, flexibility, powerful architecture, cloud computing integration, performance optimization, extensive libraries, security, Scalability, data access, and mobile development support.

How to configure MongoDB automatic expansion on Debian How to configure MongoDB automatic expansion on Debian Apr 02, 2025 am 07:36 AM

This article introduces how to configure MongoDB on Debian system to achieve automatic expansion. The main steps include setting up the MongoDB replica set and disk space monitoring. 1. MongoDB installation First, make sure that MongoDB is installed on the Debian system. Install using the following command: sudoaptupdatesudoaptinstall-ymongodb-org 2. Configuring MongoDB replica set MongoDB replica set ensures high availability and data redundancy, which is the basis for achieving automatic capacity expansion. Start MongoDB service: sudosystemctlstartmongodsudosys

How to ensure high availability of MongoDB on Debian How to ensure high availability of MongoDB on Debian Apr 02, 2025 am 07:21 AM

This article describes how to build a highly available MongoDB database on a Debian system. We will explore multiple ways to ensure data security and services continue to operate. Key strategy: ReplicaSet: ReplicaSet: Use replicasets to achieve data redundancy and automatic failover. When a master node fails, the replica set will automatically elect a new master node to ensure the continuous availability of the service. Data backup and recovery: Regularly use the mongodump command to backup the database and formulate effective recovery strategies to deal with the risk of data loss. Monitoring and Alarms: Deploy monitoring tools (such as Prometheus, Grafana) to monitor the running status of MongoDB in real time, and

Navicat's method to view MongoDB database password Navicat's method to view MongoDB database password Apr 08, 2025 pm 09:39 PM

It is impossible to view MongoDB password directly through Navicat because it is stored as hash values. How to retrieve lost passwords: 1. Reset passwords; 2. Check configuration files (may contain hash values); 3. Check codes (may hardcode passwords).

Major update of Pi Coin: Pi Bank is coming! Major update of Pi Coin: Pi Bank is coming! Mar 03, 2025 pm 06:18 PM

PiNetwork is about to launch PiBank, a revolutionary mobile banking platform! PiNetwork today released a major update on Elmahrosa (Face) PIMISRBank, referred to as PiBank, which perfectly integrates traditional banking services with PiNetwork cryptocurrency functions to realize the atomic exchange of fiat currencies and cryptocurrencies (supports the swap between fiat currencies such as the US dollar, euro, and Indonesian rupiah with cryptocurrencies such as PiCoin, USDT, and USDC). What is the charm of PiBank? Let's find out! PiBank's main functions: One-stop management of bank accounts and cryptocurrency assets. Support real-time transactions and adopt biospecies

See all articles