Tool to Import SQL to MongoDB as Scheduled Task

Sometimes you need to import SQL to MongoDB, you can use Withdata FileToMongo as SQL to MongoDB Converter (Importer / Loader).

"SQL to MongoDB" tool - FileToMongo

Works GREAT in 2026.

Support Windows, Linux, and macOS.

Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.

Can run in CLI (Command Line Interface), for Scheduled Tasks and Streams, for Automation.





Import SQL to MongoDB in GUI



Start Withdata FileToMongo, connect to MongoDB.

connect to mongodb



1 SQL to 1 Collection

Click "1 File To 1 Collection" at task dialog.

Import file data To MongoDB collection - task window

Select the "SQL" file type.

Import SQL file data To MongoDB collection - select file type

1. Open a SQL file.

Import Data From SQL File To MongoDB collection - open SQL file

The source SQL file like this:

import SQL file to MongoDB collection - source SQL file

2. Choose collection and map columns.

Load Data From SQL File To MongoDB collection - set collection options

3. Preview and set rows options.

Transfer Data From SQL File To MongoDB collection - preview

4. Import SQL to MongoDB collection.

Copy Data From SQL File To MongoDB collection - import data

After importing, you can view imported data in MongoDB collection.

view MongoDB data



N SQL to 1 Collection

Click "N File To 1 Collection" at task dialog.

Import multiple SQL files data To a single MongoDB collection - task window

Select the "SQL" file type.

Import multiple SQL files data To 1 MongoDB collection - select file type

1. Open SQL folder.

Import multiple SQL files to 1 MongoDB collection - set SQL folder

2. Set SQL options.

Import multiple SQL Files To 1 MongoDB collection - config SQL file

3. Choose collection and map columns.

Load multiple SQL Files To 1 MongoDB collection - select table

4. Preview and set rows options.

Transfer multiple SQL Files To 1 MongoDB collection - preview

5. Import SQL to MongoDB collection.

Copy multiple SQL Files To 1 MongoDB collection - import data

After importing, you can view imported data in MongoDB.

Import multiple SQL Files To Single MongoDB Collection - view data



N SQL to N Collections

Click "N File To N Collection" at task dialog.

Batch Import SQL files data To MongoDB collections - task window

then show the wizard.

Select the "SQL" file type.

Batch Import SQL files data To MongoDB collections - select file type

1. Open SQL folder.

Batch Import Data From SQL Files To MongoDB collections - set SQL folder

2. Set SQL options.

Batch Import Data From SQL Files To MongoDB collections - config SQL file

3. List collesions, set "Import Type".

Batch Load Data From SQL File To MongoDB collections - select table

4. Map files to collections.

Batch Load Data From SQL File To MongoDB collections - select table

5. Summary.

Batch Transfer Data From SQL Files To MongoDB collections - preview

6. Import SQL data to MongoDB collections.

Batch Copy Data From SQL Files To MongoDB collections - import data

After importing, you can view imported data.

view MongoDB data

Scheduled task for "SQL to MongoDB"

After importing SQL to MongoDB in Command Line, then you can schedule and automate "SQL to MongoDB" conversion task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for "SQL to MongoDB" conversion.
  2. Set scheduled task: On Linux/macOS, use Crontab. On Windows, use scheduled task.

FAQ

How long does it take to import SQL to MongoDB?


Is it safe to import SQL to MongoDB using FileToMongo?


Can I import SQL to MongoDB on Linux, Mac OS?


Can I import SQL to MongoDB in command line?


Can I batch import SQL files to MongoDB collections?