Why Choose Withdata FileToDB for JSON to MySQL?
Convert millions of JSON rows to MySQL in minutes
No data upload to online servers—all processing on your device
Full support for Windows, Linux, and macOS (GUI + CLI modes)
Standard JSON, JSON Array, JSONL/NDJSON/LDJSON, MongoDB exported JSON
Single file, multiple files to 1 table, bulk files to multiple tables
Directly import JSON from open RESTful APIs to MySQL
Not just import—update existing MySQL data or upsert via JSON
Schedule recurring JSON to MySQL tasks with CLI/Crontab/Task Scheduler
What You Can Import to MySQL with FileToDB
We support all common JSON data sources and formats for seamless MySQL integration—no manual coding required:
- Standard JSON files & JSON Array files
- JSON Lines (JSONL / NDJSON / LDJSON)
- MongoDB exported JSON files
- JSON data from open RESTful APIs (direct URL parsing)
- Single JSON file / Multiple JSON files to a single MySQL table
- Bulk JSON files to multiple MySQL tables (1 file → 1 table)
4 Simple Steps to Import JSON to MySQL (GUI Mode)
Our intuitive wizard makes JSON to MySQL import effortless—no technical skills needed. Follow these steps for any JSON type (standard, JSONL, MongoDB export, etc.):
-
Step 1: Connect to Your MySQL Database
Select MySQL as the database type, enter your MySQL host, port, username, password, and target database (support for SSH/SSL), then click Connect. 📷
-
Step 2: Select Your JSON Source & Import Wizard
Choose the wizard matching your use case (1 File To 1 Table, N Files To 1 Table, N Files To N Tables, URL Source for API JSON 📷). Select JSON as file format and load your data/URL—FileToDB auto-parses the structure. 📷
-
Step 3: Configure Target Table & Fields
Select existing table or create new from JSON structure, map JSON columns to MySQL fields (auto-mapping available), set load type (Replace/Append/Update/Upsert), customize date/number formats. 📷
-
Step 4: Preview & Import
Preview parsed JSON data, set optional parameters (skip rows, error handling), 📷 click Start Convert—view real-time progress and final import summary. 📷
Pro Tip: For REST API JSON—FileToDB auto-downloads the API JSON data to a local file and imports it to MySQL in one workflow!
Key Use Cases (Step-by-Step for Special Scenarios)
Import MongoDB Exported JSON to MySQL
- Follow the 1 File To 1 Table wizard (Step 2 above)
- Load your MongoDB exported JSON file (auto-parses $oid and other structures)
- Map MongoDB JSON fields to MySQL table columns (e.g., _id, age, classid)
- Preview and import—your MongoDB JSON is now in MySQL!
Import JSON from RESTful API to MySQL
- In source selection, choose Url instead of File
- Input API URL (e.g., http://jsonplaceholder.typicode.com/users) and local save path
- Auto-parses nested fields (e.g., address.geo.lng, company.name)
- Create table with nested fields and import the data
Import JSONL/NDJSON/LDJSON to MySQL
- Use 1 File To 1 Table wizard and select your JSONL file
- Native parsing of newline-delimited JSON—no conversion needed
- Configure table fields and load type
- Preview and import (107 records in ~0.047 seconds in tests!)
Update / Upsert MySQL Data with JSON
- In Set Target step, set Load Type to Update or Upsert
- Select key column (e.g., EMPLOYEE_ID) to match existing data
- Map JSON fields to update/upsert
- Modify only specified data—no full table overwrite!
CLI Mode & Task Automation
For developers, DevOps, or recurring JSON to MySQL tasks—FileToDB’s CLI mode lets you run imports via command line, with full support for automation on all OS:
- Save Your GUI Session: After completing import in GUI mode, click Save Session to store configuration.
- Generate Script Files: Windows (.bat) or Linux/macOS (.sh) from saved session.
- Schedule Recurring Tasks:
- Windows: Use Windows Task Scheduler to run .bat file
- Linux/macOS: Use Crontab to schedule .sh file (hourly/daily/weekly)
CLI mode supports all FileToDB features: bulk import, API JSON, update/upsert, JSONL, and MongoDB JSON—same as the GUI!
FAQ
How long does it take to import JSON to MySQL?
FileToDB is optimized for speed—millions of rows are converted in minutes. Small datasets (100-1000 records) take milliseconds.
Is FileToDB safe to use for sensitive JSON data?
Yes! All JSON parsing and MySQL import happens locally on your device—no data is uploaded to Withdata or any third-party servers.
What MySQL versions does FileToDB support?
FileToDB support MySQL 5.5, 5.6, 5.7, 8.0, 8.4, 9.0+.
Does FileToDB work on Linux/macOS?
Absolutely—FileToDB is a cross-platform tool with full GUI and CLI support for Windows, Linux, and macOS.
Can I import nested JSON to MySQL?
Yes! FileToDB auto-parses nested JSON fields (e.g., address.geo.lat) and lets you map them to MySQL columns (auto-named with underscores: address_geo_lat).
Can I schedule JSON to MySQL imports?
Yes—save your GUI session, generate a .bat (Windows) or .sh (Linux/macOS) file, and schedule it with Windows Task Scheduler or Crontab.
Get Started with FileToDB Today
Download Withdata FileToDB and start importing JSON to MySQL in minutes—no hidden fees, and free technical support for all users.
Cross-Platform Download: Works on Windows 10/11, Linux (Ubuntu, CentOS, Debian), macOS 10.15+.
FileToDB is More Than JSON to MySQL: Import CSV, TXT, Excel, and XML to MySQL/MySQL/PostgreSQL too!