I’m using heroku to deploy my app. So far, I’ve been using a development version of my app, and seeding some data into it. I also have a production version set up on heroku.
Both apps are using a mysql database hosted with ClearDB to store the data.
I simply want to move the data from the development version to the production version.
Using MySql Workbench, I exported the dev data to a file and tried to import it to the prod db, but I got an access denied error because it tried to log into the dev db with production credentials.
The databases have identical table/row/column structure. How can I take the data from one and insert it into the other?
I’m using heroku to deploy my app. So far, I’ve been using a development
Share
You can use a combination of the ‘mysql’ and ‘mysqldump’ command line
clients to “copy” one database’s contents to the other. Here’s an example of
how to do this:
with line breaks: