Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import Production Data from Development Database?

Recently, I learn to develop a rails application. Now, I have a problem. I want to change into Production Mode. But I don't want to copy my data in development database manually. How should I do these easily? I use mysql and Mac os and rails 3 beta.

like image 902
tzzzoz Avatar asked Aug 13 '26 14:08

tzzzoz


1 Answers

Here are the basic commands for dumping/loading DBs in mysql:

Dumping the database:

$ mysqldump your_dev_db_name > your_db_dump.sql

Loading the dump:

$ mysql your_production_db_name < your_db_dump.sql
like image 67
Sachin R Avatar answered Aug 16 '26 17:08

Sachin R