2. Install SQLite and DB Browser (Windows and Mac)
2.5 How to Load a .sql Seed File into a New Database
Why. Sometimes you get a .sql file, not a ready .db.
What. A seed .sql file creates tables and inserts rows when you execute it.
How. New Database → Execute SQL → open seed file → Run → Save.
Steps
- File → New Database → pick a folder and name (e.g. practice.db).
- Execute SQL tab → Open SQL file → seed_raja_coffee.sql.
- Click Run.
- Browse Data tab — confirm customers / products / orders exist.
- File → Save.
Ravindra Bagale's Tip
If Run fails mid-way, drop tables and re-run the full seed once.
Ravindra Bagale's Tip – मराठी
मध्ये Run फेल झाले तर टेबल्स drop करून पूर्ण seed पुन्हा चालवा.
Ravindra Bagale's Tip – हिंदी
बीच में Run फेल हो तो टेबल drop कर पूरे seed को एक बार फिर चलाएँ।