Tài liệu về nhà → Công cụ cơ sở dữ liệu MongoDB → MongoDB Database Tools
Công cụ
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 nhập nội dung từ xuất khẩu JSON, CSV hoặc TSV mở rộng được tạo bởi --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 hoặc có khả năng, một công cụ xuất khẩu của bên thứ ba khác.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 tool imports content from an
Extended JSON, CSV, or TSV export created by --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8, or potentially, another third-party export tool.Chạy
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 từ dòng lệnh hệ thống, không phải shell mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 from the system command line, not the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0 shell.Mẹo
Xem thêm:
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 cung cấp khả năng xuất dữ liệu có cấu trúc tương ứng.Bắt đầu với MongoDB 4.4,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 hiện được phát hành tách biệt với máy chủ MongoDB và sử dụng phiên bản riêng của nó, với phiên bản ban đầu là mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
3. Trước đây, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 đã được phát hành cùng với máy chủ MongoDB và sử dụng phiên bản phù hợp.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 is now released separately from the MongoDB Server and uses its own versioning, with an initial version of
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
3. Previously, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 was released alongside the MongoDB Server and used matching versioning.Đối với tài liệu trên MongoDB 4.2 hoặc các phiên bản trước đó của
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, hãy tham khảo tài liệu máy chủ MongoDB cho phiên bản đó của công cụ:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, reference the
MongoDB Server Documentation for that version of the tool:Ghi chú
Tài liệu này dành cho phiên bản
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
6 của --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
7 Phiên bản
6 hỗ trợ các phiên bản sau của máy chủ MongoDB: version
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
6 supports the following versions of the MongoDB Server:MongoDB 6.0
MongoDB 5.0
MongoDB 4.4
MongoDB 4.2
Mặc dù
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 có thể hoạt động trên các phiên bản trước của máy chủ MongoDB, nhưng bất kỳ khả năng tương thích nào như vậy không được đảm bảo.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 may work on earlier
versions of MongoDB server, any such compatibility is not guaranteed.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
7 Phiên bản
6 được hỗ trợ trên các nền tảng sau: version
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
6 is supported on the following platforms:
Amazon 2 | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ / CentOS 8 | ✓ | ✓ | ||
Amazon 2013.03+ / CentOS 7 | ✓ | ✓ | ✓ | |
Amazon 2013.03+ / CentOS 6 | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | ✓ | ||
Amazon 2013.03+ | ✓ | ✓ | ✓ | |
Amazon 2013.03+ | ✓ | ✓ | ✓ | |
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ | |||
Amazon 2013.03+ | ✓ |
Amazon 2013.03+ --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 tool is part of the MongoDB Database Tools package:
Debian 10 --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7.
Debian 9 --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 command has the following form:
mongoimport
Chạy
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 từ dòng lệnh hệ thống, không phải shell mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 from the system command line, not the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0 shell.Debian 8BSON data types when using
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 to perform full instance backups, be sure to specify Extended JSON v2.0
[Canonical mode] to the mongoimport --username joe --password secret1 mongodb://mongodb0.example.com:27017 --ssl
9 option to --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8, in the following fashion:mongoexport --jsonFormat=canonical --collection=
Rhel / Centos 8Extended JSON v2.0 [Relaxed mode] by default.
Rhel / Centos 7 will automatically use the JSON format found in the specified target data file when restoring. For example, it will use Extended JSON v2.0 [Canonical mode] if the target data export file was created by
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 with --host=/,,
5 specified.Rhel / Centos 6 requires import data to be in either Extended JSON v2.0
[Canonical] or Extended JSON v2.0 [Relaxed] format by default. For import data formatted using Extended JSON v1.0, specify the --host=/,,
7 option.
Mẹo
SUSE 15 only supports data files that are UTF-8 encoded. Using other encodings will produce errors.
SUSE 12 automatically creates FIPS-compliant connections to a
--host= --host=
0
1 that is configured to use FIPS mode.
Ubuntu 20.04 --host= --host= --host=
2 option and the
3 option, the
2 value overrides the write concern specified in the URI string.
Ubuntu 18.04 uses a maximum batch size of 100,000 to perform bulk insert/upsert operations.
Ubuntu 16.04 --host= --host= --host= --host=
0 that enforces authorization with the
7 option, you must use the
8 and
9 options. The connecting user must possess, at a minimum, the
0 role on the database into which they are importing data.a.0,a.1,a.2,a.3 red,yellow,green,blue
Ubuntu 14.04
Windows 8 trở lên
Windows Server 2012 trở lên --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 and
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 should not be used with field names that make use of these characters.MacOS 10.12 trở lên cannot differentiate between type wrappers and fields that happen to have the same name as type wrappers. Do not use Extended JSON formats in contexts where the corresponding BSON representations might include [
a.0,a.1,a.2,a.3 red,yellow,green,blue
1] prefixed keys. The DBRef mechanism is an exception to this
general rule.Công cụ
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 là một phần của gói công cụ cơ sở dữ liệu MongoDB:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 and --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 with [a.0,a.1,a.2,a.3 red,yellow,green,blue
2] in field names. Since CSV files use the [a.0,a.1,a.2,a.3 red,yellow,green,blue
2] to represent data hierarchies, a [a.0,a.1,a.2,a.3 red,yellow,green,blue
2] in a field name will be misinterpreted as a level of
nesting.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7.Returns information on the options and use of --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 có biểu mẫu sau:Increases the amount of internal reporting returned on standard output or in log files. Increase the verbosity with the
"a" : [ "red", "yellow", "green", "blue" ]
4 form by including the option multiple times, [e.g. "a" : [ "red", "yellow", "green", "blue" ]
5.]Nếu bạn cần lưu giữ tất cả các loại dữ liệu BSON phong phú khi sử dụng --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 để thực hiện sao lưu phiên bản đầy đủ, hãy chắc chắn chỉ định JSON v2.0 [chế độ chính tắc] cho tùy chọn mongoimport --username joe --password secret1 mongodb://mongodb0.example.com:27017 --ssl
9 thành --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8, theo kiểu sau:Runs --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 in a quiet mode that attempts to limit the amount of output.
Nếu
mongoimport --username joe --password secret1 mongodb://mongodb0.example.com:27017 --ssl
9 không được xác định, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 Dữ liệu xuất ra trong JSON v2.0 [chế độ thư giãn] theo mặc định] theo mặc định.
7 sẽ tự động sử dụng định dạng JSON được tìm thấy trong tệp dữ liệu đích được chỉ định khi khôi phục. Ví dụ: nó sẽ sử dụng JSON v2.0 mở rộng [chế độ chính tắc] nếu tệp xuất dữ liệu đích được tạo bởi--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 với--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
5 được chỉ định.database commands--host=/,,
7 yêu cầu nhập dữ liệu phải ở định dạng JSON v2.0 [Canonical] hoặc JSON v2.0 [thư giãn] mở rộng theo mặc định. Đối với dữ liệu nhập được định dạng bằng cách sử dụng JSON v1.0 mở rộng, chỉ định tùy chọn--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7.--host=/,,
7 chỉ hỗ trợ các tệp dữ liệu được mã hóa UTF-8. Sử dụng các mã hóa khác sẽ tạo ra lỗi.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 Tự động tạo các kết nối tuân thủ FIP thành--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
0--host=
1 được cấu hình để sử dụng chế độ FIP.--host=
--host=
2 và tùy chọn --host=
3, giá trị --host=
2 sẽ ghi đè lên mối quan tâm ghi được chỉ định trong chuỗi URI.Returns the --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 release number.
mongoexport --jsonFormat=canonical --collection=
00New trong phiên bản 100.3.0.New in version 100.3.0.
Chỉ định đường dẫn đầy đủ đến tệp cấu hình YAML chứa các giá trị nhạy cảm cho các tùy chọn sau đến
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7:
9--host=
03mongoexport --jsonFormat=canonical --collection=
04mongoexport --jsonFormat=canonical --collection=
Đây là cách được đề xuất để chỉ định mật khẩu thành
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, ngoài việc chỉ định nó thông qua dấu nhắc mật khẩu.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, aside from specifying it through a password prompt.Tệp cấu hình có biểu mẫu sau:
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
Chỉ định mật khẩu cho trường
mongoexport --jsonFormat=canonical --collection=
06 và cung cấp chuỗi kết nối trong trường mongoexport --jsonFormat=canonical --collection=
07 có chứa mật khẩu mâu thuẫn sẽ dẫn đến lỗi.Hãy chắc chắn để bảo mật tệp này với quyền hệ thống tập tin phù hợp.
Ghi chú
mongoexport --jsonFormat=canonical --collection=
08Specifying Chuỗi kết nối URI có thể giải quyết được của triển khai MongoDB, kèm theo trích dẫn:Specifies the resolvable URI connection string of the MongoDB deployment, enclosed in quotes:
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
Bắt đầu với phiên bản
mongoexport --jsonFormat=canonical --collection=
09 của --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, chuỗi kết nối có thể được cung cấp thay thế dưới dạng tham số vị trí mà không cần sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
03:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, the connection string may alternatively be provided as a positional parameter, without using the mongoexport --jsonFormat=canonical --collection=
03 option:mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
Là một tham số vị trí, chuỗi kết nối có thể được chỉ định tại bất kỳ điểm nào trên dòng lệnh, miễn là nó bắt đầu với
mongoexport --jsonFormat=canonical --collection=
12 hoặc mongoexport --jsonFormat=canonical --collection=
13. Ví dụ:mongoimport --username joe --password secret1 mongodb://mongodb0.example.com:27017 --ssl
Chỉ có thể cung cấp một chuỗi kết nối. Cố gắng bao gồm nhiều hơn một, cho dù sử dụng tùy chọn
mongoexport --jsonFormat=canonical --collection=
03 hoặc làm đối số vị trí, sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
03 option or as a positional argument, will result in an error.Để biết thông tin về các thành phần của chuỗi kết nối, hãy xem tài liệu định dạng URI chuỗi kết nối.Connection String URI Format documentation.
Ghi chú
mongoexport --jsonFormat=canonical --collection=
08Specifying Chuỗi kết nối URI có thể giải quyết được của triển khai MongoDB, kèm theo trích dẫn:mongoexport --jsonFormat=canonical --collection=
15 may alternatively be specified using their own explicit command-line options, such as
--host=
8 and --host=
9. Providing a connection string while also using an explicit option and specifying conflicting information will result in an error.Ghi chú
mongoexport --jsonFormat=canonical --collection=
08Specifying Chuỗi kết nối URI có thể giải quyết được của triển khai MongoDB, kèm theo trích dẫn:
mongoexport --jsonFormat=canonical --collection=
Bắt đầu với phiên bản
mongoexport --jsonFormat=canonical --collection=
09 của --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7, chuỗi kết nối có thể được cung cấp thay thế dưới dạng tham số vị trí mà không cần sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
03:mongoexport --jsonFormat=canonical --collection=
03 option may be visible to system status programs such as mongoexport --jsonFormat=canonical --collection=
19 that may be invoked by other users. Consider instead:Là một tham số vị trí, chuỗi kết nối có thể được chỉ định tại bất kỳ điểm nào trên dòng lệnh, miễn là nó bắt đầu với
12 hoặcmongoexport --jsonFormat=canonical --collection=
13. Ví dụ:mongoexport --jsonFormat=canonical --collection=
Chỉ có thể cung cấp một chuỗi kết nối. Cố gắng bao gồm nhiều hơn một, cho dù sử dụng tùy chọn
03 hoặc làm đối số vị trí, sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
20 option to specify a configuration file containing the password.mongoexport --jsonFormat=canonical --collection=
Default: localhost:27017
Một số thành phần trong
mongoexport --jsonFormat=canonical --collection=
15 có thể được chỉ định bằng cách sử dụng các tùy chọn dòng lệnh rõ ràng của riêng họ, chẳng hạn như --host=
8 và --host=
9. Cung cấp một chuỗi kết nối đồng thời sử dụng tùy chọn rõ ràng và chỉ định thông tin mâu thuẫn sẽ dẫn đến lỗi.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 attempts to connect to a MongoDB instance running on the localhost on port number mongoexport --jsonFormat=canonical --collection=
23.Cảnh báo mongoexport --jsonFormat=canonical --collection=
24 and a seed list of set members, as in the following:
--host=/,,
Trên một số hệ thống, một mật khẩu được cung cấp trong chuỗi kết nối với tùy chọn ____103 có thể hiển thị cho các chương trình trạng thái hệ thống như
mongoexport --jsonFormat=canonical --collection=
19 có thể được gọi bởi những người dùng khác. Thay vào đó hãy xem xét:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 always connects to the
primary.bỏ qua mật khẩu trong chuỗi kết nối để nhận lời nhắc mật khẩu tương tác hoặc
--host=
Sử dụng tùy chọn
mongoexport --jsonFormat=canonical --collection=
20 để chỉ định tệp cấu hình chứa mật khẩu.mongoexport --jsonFormat=canonical --collection=
21Default: Localhost: 27017mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using mongoexport --jsonFormat=canonical --collection=
29 and specifying conflicting information will result in an error.Chỉ định tên máy chủ có thể giải quyết được của triển khai MongoDB. Theo mặc định, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 cố gắng kết nối với một thể hiện MongoDB đang chạy trên localhost trên số cổng mongoexport --jsonFormat=canonical --collection=
23.Default: 27017
Để kết nối với một bộ bản sao, chỉ định
mongoexport --jsonFormat=canonical --collection=
24 và danh sách hạt giống của các thành viên đã đặt, như sau:Khi chỉ định định dạng danh sách SET bản sao,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 luôn kết nối với chính.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using mongoexport --jsonFormat=canonical --collection=
32 and specifying conflicting information will result in an error.Bạn cũng có thể kết nối với bất kỳ thành viên nào của bản sao được đặt bằng cách chỉ định máy chủ và cổng chỉ của thành viên đó:Enables connection to a --host= --host=
0 or
1 that has TLS/SSL support enabled.
Nếu bạn sử dụng IPv6 và sử dụng định dạng
mongoexport --jsonFormat=canonical --collection=
26, bạn phải gửi lại phần của địa chỉ và kết hợp cổng trong ngoặc [ví dụ: mongoexport --jsonFormat=canonical --collection=
27].mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using
mongoexport --jsonFormat=canonical --collection=
33 and specifying conflicting information will result in an error.Ngoài ra, bạn cũng có thể chỉ định tên máy chủ trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
29 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.Configure mongod and mongos for TLS/SSL and
TLS/SSL Configuration for Clients.mongoexport --jsonFormat=canonical --collection=
30Default: 27017Specifies the
mongoexport --jsonFormat=canonical --collection=
39 file that contains the root
certificate chain from the Certificate Authority. Specify the file name of the mongoexport --jsonFormat=canonical --collection=
39 file using relative or absolute paths.Chỉ định cổng TCP mà phiên bản MongoDB lắng nghe các kết nối máy khách. mongoexport --jsonFormat=canonical --collection= mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using
43 and specifying conflicting information will result in an error.
Ngoài ra, bạn cũng có thể chỉ định tên máy chủ trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
29 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.Configure mongod and mongos for TLS/SSL and
TLS/SSL Configuration for Clients.mongoexport --jsonFormat=canonical --collection=
30Default: 27017Specifies the
mongoexport --jsonFormat=canonical --collection=
39 file that contains both the
TLS/SSL certificate and key. Specify the file name of the mongoexport --jsonFormat=canonical --collection=
39 file using relative or absolute paths.Chỉ định cổng TCP mà phiên bản MongoDB lắng nghe các kết nối máy khách. mongoexport --jsonFormat=canonical --collection= --host= --host= mongoexport --jsonFormat=canonical --collection= mongoexport --jsonFormat=canonical --collection=
33 option to connect to a
0 or
1 that has
50 enabled without
51
Ngoài ra, bạn cũng có thể chỉ định cổng trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
32 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using
mongoexport --jsonFormat=canonical --collection=
54 and specifying conflicting information will result in an error.Để biết thêm thông tin về TLS/SSL và MongoDB, hãy xem Cấu hình MongoD và Mongo cho cấu hình TLS/SSL và TLS/SSL cho máy khách.Configure mongod and mongos for TLS/SSL and TLS/SSL Configuration for Clients.
mongoexport --jsonFormat=canonical --collection=
55 chỉ định mật khẩu để hủy bỏ tệp khóa chứng chỉ [tức là mongoexport --jsonFormat=canonical --collection=
54]. Chỉ sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
04 nếu tệp khóa chứng chỉ được mã hóa. Trong mọi trường hợp, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ điều chỉnh lại mật khẩu từ tất cả các đầu ra ghi nhật ký và báo cáo.Specifies the password to de-crypt the
certificate-key file [i.e. mongoexport --jsonFormat=canonical --collection= mongoexport --jsonFormat=canonical --collection= --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
54]. Use the
04 option only if the certificate-key file is encrypted. In all cases, the
7 will redact the password from all logging and reporting output.
Nếu khóa riêng trong tệp PEM được mã hóa và bạn không chỉ định tùy chọn
mongoexport --jsonFormat=canonical --collection=
04, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ nhắc cho một cụm từ. Xem Cụm mật khẩu Chứng chỉ TLS/SSL.mongoexport --jsonFormat=canonical --collection=
04 option, the --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will prompt for
a passphrase. See TLS/SSL Certificate Passphrase.Ngoài ra, bạn cũng có thể chỉ định mật khẩu trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
04 và chỉ định thông tin mâu thuẫn sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using
mongoexport --jsonFormat=canonical --collection=
04 and specifying conflicting information will result in an error.Để biết thêm thông tin về TLS/SSL và MongoDB, hãy xem Cấu hình MongoD và Mongo cho cấu hình TLS/SSL và TLS/SSL cho máy khách.Configure mongod and mongos for TLS/SSL and TLS/SSL Configuration for Clients.
Cảnh báo
Trên một số hệ thống, mật khẩu được cung cấp trực tiếp bằng tùy chọn
mongoexport --jsonFormat=canonical --collection=
04 có thể hiển thị cho các chương trình trạng thái hệ thống như mongoexport --jsonFormat=canonical --collection=
19 có thể được gọi bởi những người dùng khác. Xem xét sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
20 để chỉ định tệp cấu hình có chứa mật khẩu thay thế.mongoexport --jsonFormat=canonical --collection=
04 option may be visible to system status programs such as
mongoexport --jsonFormat=canonical --collection=
19 that may be invoked by other users. Consider using the mongoexport --jsonFormat=canonical --collection=
20 option to specify a configuration file containing the password instead.mongoexport --jsonFormat=canonical --collection=
66 Chỉ định tệp mongoexport --jsonFormat=canonical --collection=
39 chứa danh sách thu hồi chứng chỉ. Chỉ định tên tệp của tệp mongoexport --jsonFormat=canonical --collection=
39 bằng các đường dẫn tương đối hoặc tuyệt đối.Specifies the
mongoexport --jsonFormat=canonical --collection=
39 file that contains the Certificate Revocation List. Specify the file name of the mongoexport --jsonFormat=canonical --collection=
39 file using relative or absolute paths.Để biết thêm thông tin về TLS/SSL và MongoDB, hãy xem Cấu hình MongoD và Mongo cho cấu hình TLS/SSL và TLS/SSL cho máy khách.Configure mongod and mongos for TLS/SSL and TLS/SSL Configuration for Clients.
mongoexport --jsonFormat=canonical --collection=
69Bypasses Kiểm tra xác thực cho chứng chỉ máy chủ và cho phép sử dụng các chứng chỉ không hợp lệ. Khi sử dụng cài đặt mongoexport --jsonFormat=canonical --collection=
70, MongoDB ghi nhật ký như một cảnh báo về việc sử dụng chứng chỉ không hợp lệ.Bypasses the validation checks for server certificates and allows the use of invalid certificates. When using the mongoexport --jsonFormat=canonical --collection=
70 setting, MongoDB logs as a warning the use of the invalid certificate.
Cảnh báo
Trên một số hệ thống, mật khẩu được cung cấp trực tiếp bằng tùy chọn
mongoexport --jsonFormat=canonical --collection=
04 có thể hiển thị cho các chương trình trạng thái hệ thống như mongoexport --jsonFormat=canonical --collection=
19 có thể được gọi bởi những người dùng khác. Xem xét sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
20 để chỉ định tệp cấu hình có chứa mật khẩu thay thế.mongoexport --jsonFormat=canonical --collection=
66 Chỉ định tệp mongoexport --jsonFormat=canonical --collection=
39 chứa danh sách thu hồi chứng chỉ. Chỉ định tên tệp của tệp mongoexport --jsonFormat=canonical --collection=
39 bằng các đường dẫn tương đối hoặc tuyệt đối.--host=
0 or --host=
1 instance without validating server certificates is a potential security risk. If you only need to disable the validation of the hostname in the TLS/SSL certificates, see mongoexport --jsonFormat=canonical --collection=
75.mongoexport --jsonFormat=canonical --collection=
69Bypasses Kiểm tra xác thực cho chứng chỉ máy chủ và cho phép sử dụng các chứng chỉ không hợp lệ. Khi sử dụng cài đặt mongoexport --jsonFormat=canonical --collection=
70, MongoDB ghi nhật ký như một cảnh báo về việc sử dụng chứng chỉ không hợp lệ.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using mongoexport --jsonFormat=canonical --collection=
69 and specifying conflicting information will result in an error.Để biết thêm thông tin về TLS/SSL và MongoDB, hãy xem Cấu hình MongoD và Mongo cho cấu hình TLS/SSL và TLS/SSL cho máy khách.Configure mongod and mongos for TLS/SSL and TLS/SSL Configuration for Clients.
Mặc dù có sẵn, tránh sử dụng tùy chọnmongoexport --jsonFormat=canonical --collection=
69 nếu có thể. Nếu việc sử dụng mongoexport --jsonFormat=canonical --collection=
69 là cần thiết, chỉ sử dụng tùy chọn trên các hệ thống không thể xâm nhập.Disables the validation of the hostnames in TLS/SSL certificates. Allows --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 to connect to MongoDB instances even if
the hostname in their certificates do not match the specified hostname.
Kết nối với phiên bản
--host=
0 hoặc --host=
1 mà không xác thực chứng chỉ máy chủ là rủi ro bảo mật tiềm ẩn. Nếu bạn chỉ cần vô hiệu hóa việc xác thực tên máy chủ trong chứng chỉ TLS/SSL, hãy xem mongoexport --jsonFormat=canonical --collection=
75.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using mongoexport --jsonFormat=canonical --collection=
75 and
specifying conflicting information will result in an error.Để biết thêm thông tin về TLS/SSL và MongoDB, hãy xem Cấu hình MongoD và Mongo cho cấu hình TLS/SSL và TLS/SSL cho máy khách.Configure mongod and mongos for TLS/SSL and TLS/SSL Configuration for Clients.
Ngoài ra, bạn cũng có thể vô hiệu hóa xác thực chứng chỉ trực tiếp trongmongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
69 và chỉ định thông tin mâu thuẫn sẽ dẫn đến lỗi.Specifies a username with which to authenticate to a MongoDB database that uses authentication. Use in conjunction with the
--host= mongoexport --jsonFormat=canonical --collection=
9 and
84 options.
mongoexport --jsonFormat=canonical --collection=
75Disable Việc xác thực tên máy chủ trong chứng chỉ TLS/SSL. Cho phép --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 kết nối với các phiên bản MongoDB ngay cả khi tên máy chủ trong chứng chỉ của họ không khớp với tên máy chủ được chỉ định.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using --host=
8 and specifying conflicting information will result in an error.Ngoài ra, bạn cũng có thể vô hiệu hóa xác thực tên máy chủ trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
75 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.MongoDB Atlas cluster using the mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88, you can specify your AWS access key ID in:
82 chỉ định tên người dùng để xác thực vào cơ sở dữ liệu MongoDB sử dụng xác thực. Sử dụng kết hợp với các tùy chọnmongoexport --jsonFormat=canonical --collection=
9 và--host=
84.mongoexport --jsonFormat=canonical --collection=
Ngoài ra, bạn cũng có thể chỉ định tên người dùng trực tiếp trong
28. Cung cấp chuỗi kết nối đồng thời sử dụngmongoexport --jsonFormat=canonical --collection=
8 và chỉ định thông tin mâu thuẫn sẽ dẫn đến lỗi.--host=
15, ormongoexport --jsonFormat=canonical --collection=
Nếu kết nối với cụm Atlas MongoDB bằng cách sử dụng
87mongoexport --jsonFormat=canonical --collection=
88, bạn có thể chỉ định ID khóa truy cập AWS của mình trong:mongoexport --jsonFormat=canonical --collection=
vùng này,Connect to a MongoDB Atlas Cluster using AWS IAM Credentials for an example of each.
mongoexport --jsonFormat=canonical --collection=
15 hoặcSpecifies a password with which to authenticate to a MongoDB database that uses authentication. Use in conjunction with the
--host= mongoexport --jsonFormat=canonical --collection=
8 and
84 options.
Biến môi trường
mongoexport --jsonFormat=canonical --collection=
90.--host=
8 option without --host=
9 or specify an empty string as the --host=
9 value, as in mongoexport --jsonFormat=canonical --collection=
97
.Xem Kết nối với cụm Atlas MongoDB bằng cách sử dụng thông tin xác thực AWS IAM để biết ví dụ về từng thông tin. mongoexport --jsonFormat=canonical --collection= --host=
28. Providing a connection string while also using
9 and specifying conflicting information will result in an error.
mongoexport --jsonFormat=canonical --collection=
91 chỉ định một mật khẩu để xác thực vào cơ sở dữ liệu MongoDB sử dụng xác thực. Sử dụng kết hợp với các tùy chọn --host=
8 và mongoexport --jsonFormat=canonical --collection=
84.MongoDB Atlas cluster using the mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88, you can specify your AWS secret access key in:
82 chỉ định tên người dùng để xác thực vào cơ sở dữ liệu MongoDB sử dụng xác thực. Sử dụng kết hợp với các tùy chọnmongoexport --jsonFormat=canonical --collection=
9 và--host=
84.mongoexport --jsonFormat=canonical --collection=
Ngoài ra, bạn cũng có thể chỉ định tên người dùng trực tiếp trong
28. Cung cấp chuỗi kết nối đồng thời sử dụngmongoexport --jsonFormat=canonical --collection=
8 và chỉ định thông tin mâu thuẫn sẽ dẫn đến lỗi.--host=
15, ormongoexport --jsonFormat=canonical --collection=
Nếu kết nối với cụm Atlas MongoDB bằng cách sử dụng
87mongoexport --jsonFormat=canonical --collection=
88, bạn có thể chỉ định ID khóa truy cập AWS của mình trong:mongoexport --jsonFormat=canonical --collection=
vùng này,Connect to a MongoDB Atlas Cluster using AWS IAM Credentials for an example of each.
Cảnh báo
Trên một số hệ thống, mật khẩu được cung cấp trực tiếp bằng tùy chọn
mongoexport --jsonFormat=canonical --collection=
04 có thể hiển thị cho các chương trình trạng thái hệ thống như mongoexport --jsonFormat=canonical --collection=
19 có thể được gọi bởi những người dùng khác. Xem xét sử dụng tùy chọn mongoexport --jsonFormat=canonical --collection=
20 để chỉ định tệp cấu hình có chứa mật khẩu thay thế.--host=
9 option may be visible to system status programs such as mongoexport --jsonFormat=canonical --collection=
19 that may be invoked by other users. Consider instead:bỏ qua tùy chọn
9 để nhận lời nhắc mật khẩu tương tác hoặc--host=
9 option to receive an interactive password prompt, or--host=
Sử dụng tùy chọn
20 để chỉ định tệp cấu hình chứa mật khẩu.mongoexport --jsonFormat=canonical --collection=
20 option to specify a configuration file containing the password.mongoexport --jsonFormat=canonical --collection=
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
08if Kết nối với cụm Atlas MongoDB bằng cách sử dụng mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88 và sử dụng mã thông báo phiên ngoài ID khóa truy cập AWS và khóa truy cập bí mật của bạn, bạn có thể chỉ định mã thông báo AWS phiên của mình trong:If connecting to a MongoDB Atlas cluster using the
mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88, and using session tokens in addition to your AWS access key ID and secret
access key, you can specify your AWS session token in:vùng này,
tham số
11password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
12 chopassword: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
15 hoặcmongoexport --jsonFormat=canonical --collection=
12 parameter to thepassword: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
15, ormongoexport --jsonFormat=canonical --collection=
Biến môi trường
11.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
Xem Kết nối với cụm Atlas MongoDB bằng cách sử dụng thông tin xác thực AWS IAM để biết ví dụ về từng thông tin.Connect to a MongoDB Atlas Cluster using AWS IAM Credentials for an example of each.
Chỉ hợp lệ khi sử dụng
mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88mongoexport --jsonFormat=canonical --collection=
88password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
17 chỉ định cơ sở dữ liệu xác thực trong đó --host=
8 được chỉ định đã được tạo. Xem cơ sở dữ liệu xác thực.Specifies the authentication database where the specified --host=
8 has been created. See
Authentication Database.
Nếu sử dụng GSSAPI [Kerberos], Plain [LDAP SASL] hoặc
mongoexport --jsonFormat=canonical --collection=
87 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
20, bạn phải đặt mongoexport --jsonFormat=canonical --collection=
84 thành password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
22.GSSAPI [Kerberos], PLAIN [LDAP SASL], or mongoexport --jsonFormat=canonical --collection=
87 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
20, you must set mongoexport --jsonFormat=canonical --collection=
84 to password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
22.Ngoài ra, bạn cũng có thể chỉ định cơ sở dữ liệu xác thực trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng mongoexport --jsonFormat=canonical --collection=
84 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using mongoexport --jsonFormat=canonical --collection=
84 and specifying conflicting information will result in an error.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
25Default: Scram-sha-1Default: SCRAM-SHA-1
Chỉ định cơ chế xác thực, ví dụ
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sử dụng để xác thực với --host=
0 hoặc --host=
1--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 instance uses to authenticate to
the --host=
0 or --host=
1Đã thay đổi trong phiên bản 100.1.0: Bắt đầu từ phiên bản
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
29, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 thêm hỗ trợ cho cơ chế xác thực mongoexport --jsonFormat=canonical --collection=
87 khi kết nối với cụm Atlas MongoDB.MongoDB Atlas cluster.Ngoài ra, bạn cũng có thể chỉ định cơ chế xác thực trực tiếp trong
mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
33 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
33 and specifying conflicting information will result in an error.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
34 Chỉ định tên của dịch vụ bằng GSSAPI/Kerberos. Chỉ yêu cầu nếu dịch vụ không sử dụng tên mặc định là password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
35.Specify the name of the service using GSSAPI/Kerberos. Only required if the service does not use the default name of
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
35.Tùy chọn này chỉ có sẵn trong MongoDB Enterprise.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
36 Chỉ định tên máy chủ của dịch vụ bằng GSSAPI/Kerberos. Chỉ yêu cầu nếu tên máy chủ của máy không khớp với tên máy chủ được giải quyết bằng DNS.Specify the hostname of a service using GSSAPI/Kerberos. Only required if the hostname of a machine does not match the hostname resolved by DNS.
Tùy chọn này chỉ có sẵn trong MongoDB Enterprise.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
36 Chỉ định tên máy chủ của dịch vụ bằng GSSAPI/Kerberos. Chỉ yêu cầu nếu tên máy chủ của máy không khớp với tên máy chủ được giải quyết bằng DNS.Specifies the name of the database on which to run the
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
37 Chỉ định tên của cơ sở dữ liệu để chạy --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7mongoexport --jsonFormat=canonical --collection=
28. Providing a connection string while also using
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
40 and specifying conflicting information will result in an error.Ngoài ra, bạn cũng có thể chỉ định cơ sở dữ liệu trực tiếp trong mongoexport --jsonFormat=canonical --collection=
28. Cung cấp chuỗi kết nối đồng thời sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
40 và chỉ định thông tin xung đột sẽ dẫn đến lỗi.Specifies the collection to
import. If you do not specify --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
42, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
7 takes the collection name from the input filename, omitting the file's extension if it has one.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
41 chỉ định bộ sưu tập để nhập. Nếu bạn không chỉ định password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
42, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 lấy tên thu thập từ tên tệp đầu vào, hãy bỏ qua phần mở rộng của tệp nếu nó có.Specify a comma separated list of field names when importing CSV or TSV files that do not have field names in the first [i.e. header] line of the file.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
44 Chỉ định danh sách các tên trường được phân tách bằng dấu phẩy khi nhập các tệp CSV hoặc TSV không có tên trường trong dòng đầu tiên [tức là tiêu đề] của tệp.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 with
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46Để chỉ định loại trường cũng như tên trường, hãy sử dụng
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 với password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 when importing JSON data, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will return an
error. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 is only for CSV or TSV imports.Nếu bạn cố gắng bao gồm password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 khi nhập dữ liệu JSON, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ trả về lỗi. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 chỉ dành cho nhập khẩu CSV hoặc TSV.As an alternative to
45, the
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 option allows you to specify a file that holds a list of field names if your CSV or
TSV file does not include field names in the first line of the file [i.e. header]. Place one field per line.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
50as Một giải pháp thay thế cho password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45, tùy chọn password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 cho phép bạn chỉ định một tệp chứa danh sách tên trường nếu tệp CSV hoặc TSV của bạn không bao gồm tên trường trong dòng đầu tiên của tệp [tức là tiêu đề]. Đặt một trường trên mỗi dòng.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 with
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46Để chỉ định loại trường cũng như tên trường, hãy sử dụng
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 với password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 when importing JSON data, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will return an
error. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 is only for CSV or TSV imports.Nếu bạn cố gắng bao gồm password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 khi nhập dữ liệu JSON, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ trả về lỗi. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 chỉ dành cho nhập khẩu CSV hoặc TSV.Ignores empty fields in CSV and
TSV exports. If not specified, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 creates fields without values in imported documents.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58ignores các trường trống trong xuất khẩu CSV và TSV. Nếu không được chỉ định, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 tạo các trường không có giá trị trong các tài liệu đã nhập.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 when importing JSON data, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will return an error. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 is only for
CSV or TSV imports.Nếu bạn cố gắng bao gồm password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 khi nhập dữ liệu JSON, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ trả về lỗi. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 chỉ dành cho nhập khẩu CSV hoặc TSV.Specifies the file type to import. The default format is JSON, but it's possible to import CSV and TSV files.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
63 Chỉ định loại tệp để nhập. Định dạng mặc định là JSON, nhưng có thể nhập các tệp CSV và TSV.RFC-4180. As a result, backslashes
are not a valid escape character. If you use double-quotes to enclose fields in the CSV data, you must escape internal double-quote marks by prepending another double-quote.Trình phân tích cú pháp password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
64 chấp nhận dữ liệu đó tuân thủ RFC RFC-4180. Kết quả là, dấu gạch chéo ngược không phải là một nhân vật thoát hợp lệ. Nếu bạn sử dụng các trình điều khiển kép để gửi các trường trong dữ liệu CSV, bạn phải thoát các điểm trích dẫn kép bên trong bằng cách chi tiêu một trình duyệt kép khác.Specifies the location and name of a file
containing the data to import. If you do not specify a file, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 reads data from standard input [e.g. "stdin"].
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
65 chỉ định vị trí và tên của một tệp chứa dữ liệu để nhập. Nếu bạn không chỉ định một tệp, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ đọc dữ liệu từ đầu vào tiêu chuẩn [ví dụ: "stdin"].Modifies the import process so that the target instance drops the collection before importing the data from the input.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
67 Điều chỉnh quy trình nhập để phiên bản đích giảm bộ sưu tập trước khi nhập dữ liệu từ đầu vào.If using --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
69 or
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
70, uses the first line as field names. Otherwise, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
7 will import the first line as a distinct document.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68if Sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
69 hoặc password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
70, sử dụng dòng đầu tiên làm tên trường. Nếu không, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ nhập dòng đầu tiên dưới dạng tài liệu riêng biệt.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 when importing JSON data, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will return an error. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 is only for
CSV or TSV imports.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75New trong phiên bản 100.0.0.New in version 100.0.0.
Giải thích các số tự nhiên trong các trường dưới dạng chỉ mục mảng khi nhập các tệp CSV hoặc TSV.CSV or TSV files.
Tên trường phải ở dạng
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
76 trong đó password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
77 là số tự nhiên bắt đầu bằng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
78 và tăng tuần tự bằng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
79 cho mỗi thành viên của mảng.Ví dụ: với tệp CSV sau:CSV file:
a.0,a.1,a.2,a.3 red,yellow,green,blue
Nhập với tùy chọn
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75 sẽ dẫn đến tài liệu sau:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75 option would result in the following document:"a" : [ "red", "yellow", "green", "blue" ]
Nếu sử dụng tùy chọn
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46, hãy sử dụng biểu mẫu password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
82 để chỉ định cả chỉ mục mảng và loại cho mỗi trường. Xem password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 để biết thêm thông tin.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 option as well, use the form password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
82 to specify both the array index and type for each field. See password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 for more information.Các khóa số có các số không hàng đầu [ví dụ:
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
84] không được hiểu là chỉ số mảng.Nếu phần đầu tiên của khóa là số tự nhiên [ví dụ:
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
85], thì nó được hiểu là khóa tài liệu chứ không phải là chỉ mục mảng.Nếu sử dụng tùy chọn
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 với password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ ghi lại lỗi nếu bạn cố gắng nhập tài liệu chứa giá trị trống [ví dụ: password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
89] cho trường chỉ mục mảng.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 option with password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will log an error if you attempt to import a document that contains a blank value [e.g. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
89] for an array index field.Tùy chọn
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75 không có tác dụng khi nhập dữ liệu JSON, vì các mảng đã được mã hóa ở định dạng JSON.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
75 option has no effect when importing
JSON data, as arrays are already encoded in JSON format.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
91Default: ChènDefault: insert
Chỉ định cách quá trình nhập nên xử lý các tài liệu hiện có trong cơ sở dữ liệu khớp với các tài liệu trong tệp nhập.
Theo mặc định,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sử dụng trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 để khớp các tài liệu trong bộ sưu tập với các tài liệu trong tệp nhập. Để chỉ định các trường để phù hợp với các tài liệu hiện có cho các chế độ password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95 và password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96, hãy sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 uses the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 field to match documents in the collection with documents in the import file. To specify the fields against which to match existing documents for the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, and password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96 modes, use password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
98 Chỉ định danh sách các trường cho phần truy vấn của quy trình nhập. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 có thể được sử dụng với --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95 và password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96.Specifies a list of fields for the query portion of the import process. --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
97 can be used with
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
00
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, and password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96.Sử dụng tùy chọn này nếu các trường
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 trong các tài liệu hiện có không khớp với trường trong tài liệu, nhưng một kết hợp trường hoặc trường khác có thể xác định duy nhất các tài liệu làm cơ sở để thực hiện các hoạt động UPSERT.Nếu bạn không chỉ định một trường,
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 sẽ tăng lên trên cơ sở của trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 will upsert on the basis of the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 field.Để đảm bảo hiệu suất đầy đủ, các chỉ mục nên tồn tại cho trường hoặc các trường bạn chỉ định với
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
08Forces --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 để tạm dừng hoạt động chèn ở lỗi đầu tiên thay vì tiếp tục thao tác mặc dù có lỗi.Forces --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 to halt the insert operation at the first error rather than continuing the operation despite errors.
Theo mặc định,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 tiếp tục hoạt động khi gặp các lỗi xác thực khóa và khóa trùng lặp. Để đảm bảo rằng chương trình dừng các lỗi này, chỉ định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
08--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 continues an operation when it encounters duplicate key and document validation errors. To ensure that the program stops on these errors, specify --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
08--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
12Chips Việc nhập dữ liệu được biểu thị bằng nhiều tài liệu MongoDB trong một mảng JSON duy nhất. Giới hạn trong nhập khẩu từ 16 MB hoặc nhỏ hơn.Accepts the import of data expressed with multiple MongoDB documents within a single JSON array. Limited to imports of 16 MB or smaller.
Sử dụng
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
12 kết hợp với --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
14--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
12 in conjunction with --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
14--host=/,,
7 Indicated rằng dữ liệu nhập ở định dạng JSON v1 mở rộng thay vì định dạng JSON v2 mở rộng mặc định.Indicates that the import data is in Extended JSON v1 format instead of the default Extended JSON v2 format.
Mẹo
Ví dụ: nếu dữ liệu nhập ở định dạng V1:
mongoexport --jsonFormat=canonical --collection=
0Nhập mà không có tùy chọn
--host=/,,
7 dẫn đến tài liệu sau trong bộ sưu tập:--host=/,,
7 option results in the following document in the
collection:mongoexport --jsonFormat=canonical --collection=
1Nhập với kết quả
--host=/,,
7 trong tài liệu sau trong bộ sưu tập:--host=/,,
7 results in the following document in the collection:mongoexport --jsonFormat=canonical --collection=
2--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
18Default: SaiDefault: false
Nếu được chỉ định,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 chèn các tài liệu theo thứ tự xuất hiện của chúng trong nguồn đầu vào. Đó là, cả thứ tự viết hàng loạt và đơn đặt hàng tài liệu trong các lô đều được duy trì.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 inserts the documents in the order of their appearance in the input
source. That is, both the bulk write batch order and document order within the batches are maintained.Chỉ định
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
18 cũng cho phép --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
08 và đặt --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
22 thành 1.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
18 also enables --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
08 and sets
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
22 to 1.Nếu không xác định,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 có thể thực hiện các phần chèn theo thứ tự tùy ý.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 may perform the insertions in an arbitrary order.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
24Default: 1Default: 1
Chỉ định số lượng nhân viên chèn để chạy đồng thời.
Đối với nhập khẩu lớn, việc tăng số lượng công nhân chèn có thể tăng tốc độ nhập khẩu.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
25Default: Đa sốDefault: majority
Chỉ định mối quan tâm ghi cho mỗi thao tác ghi mà
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 thực hiện.write concern for each write operation that
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 performs.Chỉ định mối quan tâm ghi là một tài liệu với các tùy chọn W:w options:
mongoexport --jsonFormat=canonical --collection=
3Nếu mối quan tâm ghi cũng được bao gồm trong
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
27, dòng lệnh --host=
2 sẽ ghi đè lên mối quan tâm ghi được chỉ định trong chuỗi URI.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
27, the command-line --host=
2 overrides the write concern specified in the URI string.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
29Enables --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 để bỏ qua xác thực tài liệu trong quá trình hoạt động. Điều này cho phép bạn chèn các tài liệu không đáp ứng các yêu cầu xác nhận.Enables --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 to bypass
document validation during the operation. This lets you insert documents that do not meet the validation requirements.
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46Instructs --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 Danh sách trường được chỉ định trong password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 hoặc password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 Chỉ định các loại của mỗi trường.Instructs --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 that the field list specified in
45, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52, or password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 specifies the types of each field.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
Tên trường phải ở dạng
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
36. Bạn phải lùi lại các ký tự sau nếu bạn muốn đưa chúng vào một đối số: --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
37, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
38 và --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
39.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
| --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Bí danh cho --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Đi thời gian ngôn ngữ. Định dạng | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Định dạng định dạng Microsoft SQL Server | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Cơ sở dữ liệu Oracle TO_DATE định dạng.. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Không có | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | None. | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
Xem Nhập CSV với các loại trường được chỉ định để sử dụng mẫu.Import CSV with Specified Field Types for sample usage.
Nếu bạn cố gắng bao gồm
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 khi nhập dữ liệu JSON, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 sẽ trả về lỗi. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 chỉ dành cho nhập khẩu CSV hoặc TSV.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 when importing JSON data,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will return an error. password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 is only for CSV or
TSV imports.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
72Default: Dừng lạiDefault: stop
Chỉ định cách
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 xử lý các lỗi cưỡng chế loại khi nhập tệp CSV hoặc TSV với password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 handles type coercion failures when importing CSV or TSV files with password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
75 không có tác dụng khi nhập tài liệu JSON. has no effect when importing JSON documents.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Gán một loại dựa trên giá trị của trường. Ví dụ: nếu một trường được xác định là --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | Đối với hàng được nhập, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" | --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" |
Chạy
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 từ dòng lệnh hệ thống, không phải shell mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 from the system command line, not the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
0 shell.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 khôi phục cơ sở dữ liệu từ bản sao lưu được thực hiện với
8. Hầu hết các lập luận về
8 cũng tồn tại cho
7 restores a database from a backup taken with
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8. Most of the arguments to --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
8 also exist for
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7Trong ví dụ sau,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 nhập dữ liệu JSON từ tệp --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
93 vào bộ sưu tập --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 trong cơ sở dữ liệu --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
95.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 imports the JSON data from the --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
93 file into
the collection --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 in the --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
95 database.mongoexport --jsonFormat=canonical --collection=
4Với
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 thay thế các tài liệu hiện có trong cơ sở dữ liệu khớp với tài liệu trong tệp nhập với tài liệu từ tệp nhập. Các tài liệu không khớp với một tài liệu hiện có trong cơ sở dữ liệu được chèn như bình thường. Theo mặc định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 khớp với các tài liệu dựa trên trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93. Sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 để chỉ định các trường để phù hợp với.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 replaces existing documents in the database that match a document in the import file with the document from the
import file. Documents that do not match an existing document in the database are inserted as usual. By default --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 matches documents based on the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 field. Use password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 to specify the fields to match against.Hãy xem xét tài liệu sau trong bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 trong cơ sở dữ liệu mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
03:mongoexport --jsonFormat=canonical --collection=
5Tài liệu sau đây tồn tại trong tệp JSON
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04. Trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của đối tượng JSON khớp với trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của tài liệu trong bộ sưu tập mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02.mongoexport --jsonFormat=canonical --collection=
6Để nhập tệp
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04 và thay thế các tài liệu trong cơ sở dữ liệu phù hợp với các tài liệu trong tệp nhập, chỉ định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, như sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, as in the following:mongoexport --jsonFormat=canonical --collection=
7Tài liệu trong bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 sau đó sẽ chỉ chứa các trường từ tài liệu đã nhập, như trong phần sau:mongoexport --jsonFormat=canonical --collection=
6Với
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 cho phép bạn hợp nhất các trường từ một bản ghi mới với một tài liệu hiện có trong cơ sở dữ liệu. Các tài liệu không khớp với một tài liệu hiện có trong cơ sở dữ liệu được chèn như bình thường. Theo mặc định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 khớp với các tài liệu dựa trên trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93. Sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 để chỉ định các trường để phù hợp với.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 enables you to merge fields from a new record with an existing document in the database. Documents that do not match an existing document in the database are inserted as usual. By default
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 matches documents based on the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 field. Use password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 to specify the fields to match against.Bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 trong cơ sở dữ liệu mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
03 chứa tài liệu sau:mongoexport --jsonFormat=canonical --collection=
5Tài liệu sau đây tồn tại trong tệp JSON
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04. Trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của đối tượng JSON khớp với trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của tài liệu trong bộ sưu tập mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
0Để nhập tệp
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04 và thay thế các tài liệu trong cơ sở dữ liệu phù hợp với các tài liệu trong tệp nhập, chỉ định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
94, như sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, as in the following:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
1Tài liệu trong bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 sau đó sẽ chỉ chứa các trường từ tài liệu đã nhập, như trong phần sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 adds the new mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
29 and mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
30 fields to the document and updates the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
31 field with the value from the imported document, as in the following:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
2
Với
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 cho phép bạn hợp nhất các trường từ một bản ghi mới với một tài liệu hiện có trong cơ sở dữ liệu. Các tài liệu không khớp với một tài liệu hiện có trong cơ sở dữ liệu được chèn như bình thường. Theo mặc định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 khớp với các tài liệu dựa trên trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93. Sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 để chỉ định các trường để phù hợp với.Bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 trong cơ sở dữ liệu mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
03 chứa tài liệu sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 deletes existing documents in the database that match a document in the import file. Documents that do not match an existing document in the
database are ignored. By default --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 matches documents based on the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 field. Use password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 to specify the fields to match against.Để nhập tệp mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04 và hợp nhất các tài liệu từ tệp nhập với các tài liệu phù hợp trong cơ sở dữ liệu, chỉ định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
95, như sau:
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
Hoạt động nhập kết hợp các trường từ tệp JSON với tài liệu gốc trong cơ sở dữ liệu, khớp với các tài liệu dựa trên trường
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93. Trong quá trình nhập, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 thêm các trường mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
29 và mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
30 mới vào tài liệu và cập nhật trường mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
31 với giá trị từ tài liệu đã nhập, như sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 will only delete one existing document per match. Ensure that documents from the import file match a single existing document from the database.Bộ sưu tập
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 trong cơ sở dữ liệu mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
03 chứa tài liệu sau:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
3Tài liệu sau đây tồn tại trong tệp JSON
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04. Trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của đối tượng JSON khớp với trường password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 của tài liệu trong bộ sưu tập mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
4Để xóa các tài liệu trong cơ sở dữ liệu phù hợp với tài liệu trong tệp
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
04, chỉ định --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96, như sau:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
00password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
96, as in the
following:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
5Vì các trường
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
93 khớp giữa cơ sở dữ liệu và tệp đầu vào, --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 xóa tài liệu phù hợp khỏi bộ sưu tập mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02. Các kết quả tương tự cũng có thể đạt được bằng cách sử dụng password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 để chỉ định trường mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
54, cũng phù hợp giữa cơ sở dữ liệu và tệp đầu vào.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 deletes the matching document from the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
02 collection. The same results could also have been achieved by using
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
97 to specify the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
54 field, which also matches between the database and the input file.Trong ví dụ sau,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 Nhập dữ liệu từ tệp mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
56 vào bộ sưu tập --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 trong cơ sở dữ liệu mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
58 trên cơ sở dữ liệu MongoDB từ xa có bật xác thực.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 imports data from the file mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
56 into the
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 collection within the database mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
58 on a remote MongoDB database with authentication enabled.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --host= mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] --host= --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" --host=
7 kết nối với ví dụ
0 chạy trên máy chủ
61 qua cổng
62. Nó xác thực với tên người dùng
63; Ví dụ bỏ qua tùy chọn
9 để có lời nhắc
7 cho mật khẩu: connects to the
0 instance running on the host
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
61 over port
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
62. It authenticates with the username mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
63; the example omits the --host=
9 option to have --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 prompt for the password:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
6Trong ví dụ sau,
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 nhập dữ liệu được định dạng CSV trong tệp mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
67 vào bộ sưu tập --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 trong cơ sở dữ liệu --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
95 trên thể hiện MongoDB chạy trên cổng localhost được đánh số mongoexport --jsonFormat=canonical --collection=
23.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 imports the CSV formatted data in the mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
67 file into the collection --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
94 in the --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
95 database on the MongoDB instance running on the localhost port numbered mongoexport --jsonFormat=canonical --collection=
23.Chỉ định
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 Hướng dẫn --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 để xác định tên của các trường bằng dòng đầu tiên trong tệp CSV.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68 instructs --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 to determine the name of the fields using the first line in the CSV file.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
7--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]" mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
7 sử dụng tên tệp đầu vào, không có phần mở rộng, làm tên thu thập nếu
74 hoặc
42 không được xác định. Do đó, ví dụ sau đây tương đương: uses the input file name, without the extension, as the collection name if password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
74 or password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
42 is unspecified. The following example is therefore equivalent:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
8Khi chỉ định tên trường, bạn cũng có thể chỉ định kiểu dữ liệu. Để chỉ định tên trường và loại, bao gồm
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 với: password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52 hoặc password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 with either: password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45, password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
52, or
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
68Chỉ định tên trường và loại dữ liệu trong mẫu
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
36.Ví dụ: tệp
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
81 chứa các dữ liệu sau:password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
9Hoạt động sau sử dụng
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 với tùy chọn password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 và password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 để chỉ định cả tên trường và các loại BSON của dữ liệu CSV đã nhập.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 with the
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
45 and password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
46 option to specify both the field names and the BSON types of the imported CSV data.--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
0Sử dụng tùy chọn
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 để bỏ qua các trường trống. Đối với nhập CSV và TSV, tùy chọn này cung cấp chức năng mong muốn trong hầu hết các trường hợp vì nó tránh chèn các trường có giá trị null vào bộ sưu tập của bạn.password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
58 option to ignore blank fields. For CSV and TSV imports, this option provides
the desired functionality in most cases because it avoids inserting fields with null values into your collection.Ví dụ sau nhập dữ liệu từ
mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
86, bỏ qua bất kỳ trường trống nào:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
1Mới trong phiên bản 100.1.0.
Để kết nối với cụm Atlas MongoDB đã được cấu hình để hỗ trợ xác thực thông qua thông tin xác thực AWS IAM, cung cấp
mongoexport --jsonFormat=canonical --collection=
15 đến --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 tương tự như sau:MongoDB Atlas cluster which has been configured to support authentication via
AWS IAM credentials, provide a mongoexport --jsonFormat=canonical --collection=
15 to --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 similar to the following:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
2Kết nối với Atlas bằng thông tin AWS IAM theo cách này sử dụng
mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88 và password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
22 mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
92, như trong ví dụ này.mongoexport --jsonFormat=canonical --collection=
88 and the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
22 mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
92, as shown in this example.
Nếu cũng sử dụng mã thông báo phiên AWS, hãy cung cấp cho nó giá trị
password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
11 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
12, như sau:AWS session token, as well, provide it with the password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
11 password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
12 value, as follows:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
3Ghi chú
Nếu ID khóa truy cập AWS, khóa truy cập bí mật hoặc mã thông báo phiên bao gồm các ký tự sau:
Những ký tự đó phải được chuyển đổi bằng cách sử dụng phần trăm mã hóa.percent encoding.
Ngoài ra, ID khóa truy cập AWS, khóa truy cập bí mật và mã thông báo phiên tùy chọn có thể được cung cấp bên ngoài chuỗi kết nối bằng các tùy chọn
--host=
8, --host=
9 và mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
97 thay vào đó, như vậy:--host=
8, --host=
9, and mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
97 options instead, like so:--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
4Khi được cung cấp dưới dạng tham số dòng lệnh, ba tùy chọn này không yêu cầu mã hóa phần trăm.
Bạn cũng có thể đặt các thông tin này trên nền tảng của mình bằng các biến môi trường AWS IAM tiêu chuẩn.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 Kiểm tra các biến môi trường sau khi bạn sử dụng mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88AWS IAM environment variables. --uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 checks
for the following environment variables when you use the mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88
90mongoexport --jsonFormat=canonical --collection=
03password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
11password: uri: mongodb://mongodb0.example.com:27017 sslPEMKeyPassword:
Nếu được đặt, các thông tin đăng nhập này không cần được chỉ định trong chuỗi kết nối hoặc thông qua các tùy chọn rõ ràng của chúng.
Ghi chú
Nếu ID khóa truy cập AWS, khóa truy cập bí mật hoặc mã thông báo phiên bao gồm các ký tự sau:or specify each of these using the explicit or connection string options instead.
Những ký tự đó phải được chuyển đổi bằng cách sử dụng phần trăm mã hóa.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
5Ngoài ra, ID khóa truy cập AWS, khóa truy cập bí mật và mã thông báo phiên tùy chọn có thể được cung cấp bên ngoài chuỗi kết nối bằng các tùy chọn
--host=
8, --host=
9 và mongoimport mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
97 thay vào đó, như vậy:Khi được cung cấp dưới dạng tham số dòng lệnh, ba tùy chọn này không yêu cầu mã hóa phần trăm.
Bạn cũng có thể đặt các thông tin này trên nền tảng của mình bằng các biến môi trường AWS IAM tiêu chuẩn.
--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
7 Kiểm tra các biến môi trường sau khi bạn sử dụng mongoexport --jsonFormat=canonical --collection=
87 mongoexport --jsonFormat=canonical --collection=
88--uri "mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
6