How to create a MySQL schema when deploying with Heroku (Express Server) How to create a MySQL schema when deploying with Heroku (Express Server) heroku heroku

How to create a MySQL schema when deploying with Heroku (Express Server)


First, you should type heroku config to get your clearDB credentials.

Then, you can ran this command from your terminal : mysql --host=us-cdbr-east.cleardb.com --user=xxxx --password=xxxx --reconnect heroku_xxxxxx < schema.sql