hello,
i am new to rails and would like to know if there is a simple way to
dump my database (schema and data) from within my rails app.
thanks
marco
hello,
i am new to rails and would like to know if there is a simple way to
dump my database (schema and data) from within my rails app.
thanks
marco
marco wrote:
hello,
i am new to rails and would like to know if there is a simple way to
dump my database (schema and data) from within my rails app.thanks
marco
try running
rake --tasks
and see if anything there looks useful.
Cheers.
-=R
thanks for that answer, but that was not what I was looking for.
I would like to dump my database from within my application (a link in
the app “Save Database To File”), not from the commandline.
Or is there a possibility to invoke a commandline?
marco
On 29 Aug., 08:20, Roger P. [email protected]
marco wrote:
thanks for that answer, but that was not what I was looking for.
I would like to dump my database from within my application (a link in
the app “Save Database To File”), not from the commandline.
Or is there a possibility to invoke a commandline?
Yeah command line is probably an ok route:
dumped_db_as_string = mysqldump -uroot -ppassword db_name
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs