设为首页 - 加入收藏  
您的当前位置:首页 >数据库 >教你如何利用MySQL学习MongoDB之导入和导出 正文

教你如何利用MySQL学习MongoDB之导入和导出

来源:亿华互联编辑:数据库时间:2025-11-05 05:07:19
教你如何利用MySQL学习MongoDB之导入和导出
复制[root@localhost bin]# ./mongoexport --help options:   --help produce help message  -v [ --verbose ] be more verbose (include multiple times for more  verbosity e.g. -vvvvv)    -h [ --host ] arg mongo host to connect to ( /s1,教何s2 for sets)  --port arg server port. Can also use --host hostname:port  --ipv6 enable IPv6 support (disabled by default)  -u [ --username ] arg username  -p [ --password ] arg password  --dbpath arg directly access mongod database files in the given  path, insteadof connecting to a mongod server -    needs to lock the data directory, so cannot be used    if a mongod is currently accessing the same path    --directoryperdb if dbpath specified, each db is in a separate  directory    -d [ --db ] arg database to use  -c [ --collection ] arg collection to use (some commands)  -f [ --fields ] arg comma separated list of field names e.g. -f name,age  --fieldFile arg file with fields names - 1 per line  -q [ --query ] arg query filter, as a JSON string  --csv export to csv instead of json  -o [ --out ] arg output file; if not specified, stdout is used  --jsonArray output to a json array rather than one object per  line    [root@localhost bin]#   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.

0.5407s , 11637.8203125 kb

Copyright © 2025 Powered by 教你如何利用MySQL学习MongoDB之导入和导出,亿华互联  滇ICP备2023000592号-16

sitemap

Top