views:

45

answers:

1

Hello. 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 developement database manually. How should I do these easily? I use mysql and Mac os and rails 3 beta. Tks.

+3  A: 

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
Thanks for your answer.
tzzzoz