mongoexport --authenticationDatabase admin -h xxxx --port xxx -u mongo -p xxx -d xxxx -c xxx -o /xxx/xxx.json
不加–authenticationDatabase admin的话会报错:
error connecting to db server: server returned error on SASL authentication step: Authentication failed.