Importing Data
Introduction
This tutorial shows you how to import data from CSV files and SQL files into your MySQL database using DBWillow.
Importing CSV Files
Step 1: Prepare Your CSV
- Include headers in first row
- Use consistent formatting
- Clean data before importing
- Save as UTF-8 encoding
Step 2: Start Import
- Click "Import" → "CSV"
- Select CSV file
- Import wizard opens
Step 3: Map Columns
Visual column mapping:
- CSV columns on left
- Database columns on right
- Drag to match columns
- Preview data
Step 4: Configure Options
- Skip header row
- Delimiter (comma, semicolon, tab)
- Encoding
- Error handling
Step 5: Preview and Import
- Review mapped data
- Check for errors
- Click "Import"
- Monitor progress
Importing SQL Files
Step 1: Select SQL File
- Click "Import" → "SQL File"
- Select SQL file
- Review statements
Step 2: Review SQL
- See all statements
- Check for errors
- Verify target database
- Review data
Step 3: Execute Import
- Click "Import"
- Statements execute
- Monitor progress
- Review results
Best Practices
Before Importing
- Backup database
- Test with small dataset
- Verify data format
- Check constraints
During Import
- Monitor progress
- Watch for errors
- Review error log
- Pause if needed
After Importing
- Verify data
- Check row counts
- Test queries
- Document import
Troubleshooting
Import Errors
- Check file format
- Verify column mapping
- Review data types
- Check constraints
Data Issues
- Verify encoding
- Check date formats
- Review special characters
- Validate data types
Next Steps
- Learn about Import/Export features
- Read SQL Editor guide
- Explore Schema Explorer
