Importing mysql data

Is there anyway to import data using mysqldump rather than fixtures
during a test (rake test:profile in this case).

I have not been successful in exporting mysql data in yml format
(which works ok) and importing it into rails (doesn’t work, rake task
complains about formatting of the yml file whose integrity seems
intact).

What are some other days to export/import data with or without
fixtures?

On Fri, Oct 15, 2010 at 8:22 PM, badnaam [email protected] wrote:

I have not been successful in exporting mysql data in yml format
(which works ok) and importing it into rails (doesn’t work, rake task
complains about formatting of the yml file whose integrity seems
intact).

How are you doing this export/import? I’ve had good luck in the past
with the yaml_db gem.


Hassan S. ------------------------ [email protected]
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs