I have tried various commands for importing csv file into mongodb but most are giving errors."unexpected identifier"
mongoimport -h host:port -d experimental2 -c <collection> -u <user> -p <password> --file <input .csv file> --type csv --headerline
mongoimport -h localhost --port 27017 -d test -c forcasting --type csv --file ~/Desktop/forecasting.csv
mongoimport -h piyushl --port 27017 -d test -c forcasting --type csv --file ~/Desktop/forecasting.csv
mongoimport -h localhost:27017 -d test -c forcasting -u Piyushl --file forecasting --type csv --headerline
But nothing seems to work.