I suggest you dump the Mysql data into a CSV file, you can also try a different file format, but make sure the file format is friendly, so you can easily import the data into MongoDB, supporting MongoDB and Mysql CSV file format very well.
You can try using mysqldump or OUTFILE to dump Mysql databases for backup, using mysqldump may take a lot of time, so take a look at How can I optimize mysqldump for a large database? .
Then use the mongoimport tool to import the data.
As far as I know, there are three ways to optimize imports:
, , , , , , , , MongoDB, .
, .
, .