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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With