There are basically 2 methods:
Method 1: You can export from MySQL in a CSV format and then use the mongoimport tool. However, this does not always work well in terms of handling dates of binary data.
Method 2: Or you can script the transfer in your language of choice. In this method, you have to write a program that reads everything from MySQL one element at a time and then inserts it into MongoDB.