mongoimport -h 127.0.0.1 --port 30017 -d database -username --password 'password' --collection collection_name --file test.json
给某个特定的库授权,并导入json数据。
mongoimport -h 127.0.0.1 --port 30017 -d database -username --password 'password' --collection collection_name --file test.json
给某个特定的库授权,并导入json数据。