Import MySQL database to Heroku with one command… import db.sql

Michael Tendo
1 min readJan 3, 2020
  1. Well, first, enable the clearDB add-on from the Heroku dashboard

2. Save this batch script as import.bat

3. Dump the local database in db.sql

4. In the heroku app directory, run

import db.sql

5. All info is stored in config.txt

Good luck

--

--