MongoDB permissions, Backup, restore, de-weight
PermissionsData security is a critical part of a database, so here's a general procedure for setting up MongoDB user rights.First, create a new database administrator in unlicensed mode:Start the
Backup and recovery data database Case 2-use online backup to restore the database.
1. Set archiving Parameters
1,
Drop database mydb
Create Database mydb
Update dB CFG for mydb using implements logpathd: \
Php database backup class sharing a good php database backup class
Error_reporting (0); // php alarm prompt for eliminating all evil
// Set the email address
$ Options = array ('email '=> array ('email1', 'email2 '),
'Folder' => './ba
heterogeneous data migrationData backup MongodumpYou can use Mongodump to make a library or table-level backup of MongoDB, as illustrated below:1. Backing Up the Iflashbuy_log database>c:\mongo\bin\mongodump-d Iflashbuy_logA dump directory is created in the current directory to hold the backed-up files, or to specify
Label:Introduction Xtrabackup is a MySQL database backup tool provided by Percona, officially described, which is the world's only one by one open source tools that enable hot provisioning of InnoDB and XTRADB databases. Characteristics:(1) The backup process is fast and reliable;(2) The backup process does not interru
Summary of database backup and Restoration Technology of the IT Ninja Turtles, and backup of the Ninja Turtles Database
1. exp/imp (export and import the library and unload the database) 1.1 Basic commands 1. Get help
$ Exp help = y
$ Imp help = y2. Three ways of working
(1
Database backup –mongodump
Back up all local MongoDB databases:
Copy Code code as follows:
# mongodump-h 127.0.0.1--port 27017-o/root/db/alldb
To back up a remote specified database:
Copy Code code as follows:
# mongodump-h 192.168.1.233--port 27018-d yourdb-o/root/db/yourdb
A job backup, not a backup database, is a backup job.
My approach is to export the job as a file backup, because when your server maintenance more than a lot of your homework is very problematic, very troublesome.
It is best to be able to work to achieve synchronization, t
Note: In the backup file directory selection, there is a condition that the file directory, no matter how deep, can only have one file, (that is, except for the backup file can only exist folder, this condition constrains its entire directory tree)Data backup:/mongodump--host 127.0.0.1:27017-d lanzhoudb-o/data/mongodb/
Label:poiinit_idenablemax offsetsnappysumjpg Data type MongoDB 3.x data capacity gb failure type Server power loss causes WIREDTIGER.WT file corruption Start error detected data files in E:\DTLFolder\MongoDB\dat A created by the ' Wiredtiger ' storage engine, so setting the active storage engine to ' Wiredtiger '. 2018-05-08t16:10:09.755 +0800 I STORAGE [initandlisten] Wiredtiger_open config:create,cache_si
MongoDB provides backup and restore capabilities, Mongodump.exe and Mongorestore.exe files in the MongoDB download directory, respectively.1. Back up your data using the following command:>mongodump-h dbhost-d Dbname-o dbdirectory-H:MONGDB the server address, for example: 127.0.0.1, you can also specify the port number: 127.0.0.1:27017-D: The
Regular oracle database backup and oracle Database Backup
Currently, we need to design a batch of processing files to achieve full backup on Monday, Incremental backup on Tuesday, Friday, and Incremental
Tags: Environment technology share double quotes source file production environment Export data production special classRecently developed a version of the functionality of the use of MongoDB paging, lazy to build data, and then studied the next from the production environment to export data to the local test. Study a bit, found that MongoDB backup restore and My
Mongodb databases are also inseparable from necessary maintenance, such as backup, recovery, import, and export.
In fact, backup and recovery are easier to import and export than normal, so most of the time you can use backup and recovery operations.
1. Back up Mongodb
Ex
located at example2.commongodb: // example1.com: 27017, and example2.com: 27017 is connected to a local replica set (ports are 27019, and respectively) mongod. B: // localhost, localhost: 27018, localhost: 27019 connect to the replica set of the three servers, send all write operations to the master node, and distribute all read operations to the slave node MongoDB: // host1, host2, host3 /? Slaveok = true connect to the first server and respond, whe
MongoDB database data aggregation amp; Pipe operations, mongodb database AggregationThe data aggregation process for pipeline operations on mongodb usually works with pipeline operations. The pipeline operation concept of mongodb
MongoDB Export and Import1: The import/export can operate on a local MONGODB server, or it can be remote.Therefore, the following general options are available:-H Host--port Port Ports-u username user name-P passwd Password2:mongoexport exporting files in JSON formatQ: Which library, which table, which columns, which rows are exported?-D Library Name-C Table Name-F Field1,field2 ... Column Name-Q Query crit
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.